Skip to content

Commit

Permalink
Apply box-sizing border-box properly to the notices components (#17066)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Aug 22, 2019
1 parent 6ecff18 commit ab70dc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/src/notice/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
.components-notice-list {
// The notice should never be wider than the viewport, or the close button might be hidden. Especially relevant at high zoom levels. Related to https://core.trac.wordpress.org/ticket/47603#ticket.
max-width: 100vw;
box-sizing: border-box;
z-index: z-index(".components-notice-list");

.components-notice__content {
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/snackbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
padding: 16px 24px;
width: 100%;
max-width: 600px;
box-sizing: border-box;
cursor: pointer;

@include break-small() {
Expand Down Expand Up @@ -54,6 +55,7 @@
position: absolute;
z-index: z-index(".components-snackbar-list");
width: 100%;
box-sizing: border-box;
}

.components-snackbar-list__notice-container {
Expand Down

0 comments on commit ab70dc2

Please sign in to comment.