Skip to content

Commit d1e419f

Browse files
committed
feat(pie-notification): DSW-2172 replaces media to include-media
1 parent 209d0a9 commit d1e419f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/components/pie-notification/src/notification.scss

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
@use '@justeattakeaway/pie-css/scss' as p;
22

3-
$breakpoint-wide: 768px;
4-
53
.c-notification {
64
--notification-border-radius: var(--dt-radius-rounded-c);
75
--notification-background-color: var(--dt-color-container-subtle);
@@ -63,7 +61,7 @@ $breakpoint-wide: 768px;
6361
font-size: var(--notification-heading-font-size);
6462
line-height: var(--notification-heading-line-height);
6563

66-
@media (min-width: $breakpoint-wide) {
64+
@include media('>md') {
6765
--notification-heading-font-size: #{p.font-size(--dt-font-heading-s-size--wide)};
6866
--notification-heading-line-height: #{p.line-height(--dt-font-heading-s-line-height--wide)};
6967
}
@@ -95,7 +93,7 @@ $breakpoint-wide: 768px;
9593
align-self: flex-end;
9694
}
9795

98-
@media (max-width: $breakpoint-wide) {
96+
@include media('<md') {
9997
&.c-notification-footer--stacked {
10098
flex-direction: column-reverse;
10199
}
@@ -109,7 +107,7 @@ $breakpoint-wide: 768px;
109107
color: var(--notification-icon-fill);
110108
margin-block-start: var(--notification-icon-offset);
111109

112-
@media (max-width: $breakpoint-wide) {
110+
@include media('<md') {
113111
margin-block-start: 0;
114112
}
115113
}

0 commit comments

Comments
 (0)