diff --git a/packages/webawesome/docs/docs/resources/changelog.md b/packages/webawesome/docs/docs/resources/changelog.md index 61085fd7c..513432106 100644 --- a/packages/webawesome/docs/docs/resources/changelog.md +++ b/packages/webawesome/docs/docs/resources/changelog.md @@ -15,6 +15,7 @@ Components with the Experimental badge sh - Fixed a bug in `` that caused some touch devices to end up with the incorrect value [issue:1703] - Fixed a bug in `` that prevented some slots from being detected correctly [discuss:1450] +- Fixed a z-index bug in `` styles [issue:1724] - Fixed a bug in `` that caused some icon libraries to render with the incorrect SVG fill [issue:1733] - Fixed a bug in `` that caused the spinner to not show when lazy loading [issue:1678] - Fixed a bug in `` that caused the browser to hang when cancelling the `wa-hide` event [issue:1483] diff --git a/packages/webawesome/src/components/scroller/scroller.css b/packages/webawesome/src/components/scroller/scroller.css index 2dac32094..3b4080c9e 100644 --- a/packages/webawesome/src/components/scroller/scroller.css +++ b/packages/webawesome/src/components/scroller/scroller.css @@ -53,6 +53,19 @@ overflow-y: auto; } +#start-shadow, +#end-shadow { + z-index: 2; +} + +#start-shadow { + opacity: var(--start-shadow-opacity); +} + +#end-shadow { + opacity: var(--end-shadow-opacity); +} + /* Horizontal shadows */ :host([orientation='horizontal']) { #start-shadow, @@ -64,14 +77,6 @@ pointer-events: none; } - #start-shadow { - opacity: var(--start-shadow-opacity); - } - - #end-shadow { - opacity: var(--end-shadow-opacity); - } - #start-shadow { &:dir(ltr) { left: 0; @@ -102,21 +107,12 @@ #start-shadow, #end-shadow { position: absolute; - z-index: 2; right: 0; left: 0; height: var(--shadow-size); pointer-events: none; } - #start-shadow { - opacity: var(--start-shadow-opacity); - } - - #end-shadow { - opacity: var(--end-shadow-opacity); - } - #start-shadow { top: 0; background: linear-gradient(to bottom, var(--shadow-color), transparent 100%);