webrix icon indicating copy to clipboard operation
webrix copied to clipboard

Scrollbar Shadow should be positioned by default

Open yairEO opened this issue 2 years ago • 2 comments

Currently, Shadow.jsx does not come with CSS that has position

<Scrollable.Shadow>
    <Scrollable>
        ...
    </Scrollable>
</Scrollable.Shadow>

And so, whoever is using the Scrollable Shadow must position it themselves (in their app):

.scroll-shadow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

And it begs the question why does the above CSS not come out-of-the-box inside the <Shadow> component SCSS file.

yairEO avatar Jan 16 '23 11:01 yairEO