Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 7455978

Browse files
RobertSmitskfranqueiro
authored andcommitted
fix(snackbar): Explicitly use border-box (#1453)
1 parent 8a6e057 commit 7455978

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/mdc-snackbar/mdc-snackbar.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
left: 50%;
2929
align-items: center;
3030
justify-content: flex-start;
31+
box-sizing: border-box;
3132
padding-right: 24px;
3233
padding-left: 24px;
3334
transform: translate(-50%, 100%);
@@ -42,7 +43,7 @@
4243

4344
@media (max-width: ($mdc-snackbar-tablet-breakpoint - 1)) {
4445
left: 0;
45-
width: calc(100% - 48px);
46+
width: 100%;
4647
transform: translate(0, 100%);
4748
}
4849

@@ -63,7 +64,7 @@
6364
@media (max-width: ($mdc-snackbar-tablet-breakpoint - 1)) {
6465
bottom: 0;
6566
left: 0;
66-
width: calc(100% - 48px);
67+
width: 100%;
6768
transform: translate(0, 100%);
6869
}
6970
}
@@ -79,7 +80,7 @@
7980
@media (max-width: ($mdc-snackbar-tablet-breakpoint - 1)) {
8081
bottom: 0;
8182
left: 0;
82-
width: calc(100% - 48px);
83+
width: 100%;
8384
transform: translate(0);
8485
}
8586
}

0 commit comments

Comments
 (0)