Skip to content

Commit

Permalink
[core] Fix Toaster regression (palantir#2232)
Browse files Browse the repository at this point in the history
  • Loading branch information
reiv committed Mar 14, 2018
1 parent 0fe776f commit b430521
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions packages/core/src/components/toast/_toast.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,13 @@ $toast-margin: $pt-grid-size * 2 !default;
// container will not block clicks on elements behind it
pointer-events: none;

// TransitionGroup
> div {
display: flex;
flex-direction: column;
align-items: center;
// prevent container from scrolling as new toasts enter (from bottom)
overflow: hidden;
// ensure there's enough space for full box-shadow
padding: 0 $toast-margin $toast-margin;
}
display: flex;
flex-direction: column;
align-items: center;
// prevent container from scrolling as new toasts enter (from bottom)
overflow: hidden;
// ensure there's enough space for full box-shadow
padding: 0 $toast-margin $toast-margin;

&.pt-toast-container-top {
top: 0;
Expand All @@ -179,16 +176,14 @@ $toast-margin: $pt-grid-size * 2 !default;
top: auto;
bottom: 0;

> div {
flex-direction: column-reverse;
}
flex-direction: column-reverse;
}

&.pt-toast-container-left > div {
&.pt-toast-container-left {
align-items: flex-start;
}

&.pt-toast-container-right > div {
&.pt-toast-container-right {
align-items: flex-end;
}
}
Expand Down

0 comments on commit b430521

Please sign in to comment.