Skip to content

Commit 64e7dec

Browse files
authored
Merge pull request #5582 from uswds/al-theme-site-margins-fix
USWDS - Settings: Fix math errors with $theme-site-margins-width
2 parents 105e11b + 06078d7 commit 64e7dec

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/uswds-core/src/styles/mixins/helpers/alert-status-styles.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090

9191
padding-left: units($theme-alert-icon-size) + ($alert-icon-optical-padding);
9292
@include at-media($theme-site-margins-breakpoint) {
93-
@include u-padding-x($theme-site-margins-width * 2);
93+
padding-left: units($theme-site-margins-width) * 2;
94+
padding-right: units($theme-site-margins-width) * 2;
9495
}
9596

9697
.usa-link {
@@ -122,7 +123,9 @@
122123
position: absolute;
123124
top: units($theme-alert-padding-y) * 0.75;
124125
@include at-media($theme-site-margins-breakpoint) {
125-
left: units($theme-site-margins-width) - units($theme-alert-bar-width);
126+
left: calc(
127+
units($theme-site-margins-width) - units($theme-alert-bar-width)
128+
);
126129
}
127130
}
128131
}
@@ -163,7 +166,9 @@
163166

164167
padding-left: $alert-slim-icon-size + $alert-icon-optical-padding;
165168
@include at-media($theme-site-margins-breakpoint) {
166-
padding-left: units($theme-site-margins-width) + $alert-slim-icon-size;
169+
padding-left: calc(
170+
units($theme-site-margins-width) + $alert-slim-icon-size
171+
);
167172
}
168173
}
169174
}

0 commit comments

Comments
 (0)