Skip to content

Commit

Permalink
Fix hover shadow on toasts (#632)
Browse files Browse the repository at this point in the history
* Fix hover shadow on toasts
  • Loading branch information
snide authored Apr 4, 2018
1 parent be932fa commit b2cc8ec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# [`master`](https://github.com/elastic/eui/tree/master)

No public interface changes since `0.0.39`.
**Bug fixes**

- Fix visual shadow glitch on hover of `EuiToast` ([#632](https://github.com/elastic/eui/pull/632))

# [`0.0.39`](https://github.com/elastic/eui/tree/v0.0.39)

Expand Down
12 changes: 6 additions & 6 deletions src-docs/src/views/toast/toast_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const ToastExample = {
EuiGlobalToastListItem,
},
demo: (
<div style={{ width: 320 }}>
<div style={{ maxWidth: 320 }}>
<EuiButton onClick={addToast}>
Add toast to global toast list
</EuiButton>
Expand Down Expand Up @@ -89,7 +89,7 @@ export const ToastExample = {
</div>
),
demo: (
<div style={{ width: 320 }}>
<div style={{ maxWidth: 320 }}>
<Default />
</div>
),
Expand All @@ -108,7 +108,7 @@ export const ToastExample = {
</p>
),
demo: (
<div style={{ width: 320 }}>
<div style={{ maxWidth: 320 }}>
<Info />
</div>
),
Expand All @@ -127,7 +127,7 @@ export const ToastExample = {
</p>
),
demo: (
<div style={{ width: 320 }}>
<div style={{ maxWidth: 320 }}>
<Success />
</div>
),
Expand All @@ -146,7 +146,7 @@ export const ToastExample = {
</p>
),
demo: (
<div style={{ width: 320 }}>
<div style={{ maxWidth: 320 }}>
<Warning />
</div>
),
Expand All @@ -165,7 +165,7 @@ export const ToastExample = {
</p>
),
demo: (
<div style={{ width: 320 }}>
<div style={{ maxWidth: 320 }}>
<Danger />
</div>
),
Expand Down
4 changes: 2 additions & 2 deletions src/components/toast/_global_toast_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
z-index: $euiZToastList;
bottom: 0;
right: 0;
width: $euiToastWidth + $euiSize; /* 3 */
width: $euiToastWidth + $euiSize + $euiSizeXL; /* 3 */
padding-right: $euiSize;
padding-left: $euiSizeXL;
max-height: 100vh; /* 1 */

&:hover {
Expand Down Expand Up @@ -64,4 +65,3 @@
width: 100%; /* 1 */
}
}

0 comments on commit b2cc8ec

Please sign in to comment.