[scroll area] Style hover + active state #1283
Labels
component: scroll area
design
This is about UI or UX design, please involve a designer
enhancement
This is not a bug, nor a new feature
Summary
The native scrollbar has come a long way:
scrollbar-color
: https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color (fallback to::-webkit-scrollbar
)scrollbar-width
: https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-widthscrollbar-gutter
: https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-gutter (reserve space to avoid layout shift)is available in all browsers. Appearance can be animated to.
However, there still seem to be limitations with native scrollbar (could be content we add under https://base-ui.com/react/components/scroll-area to explain why this component exists in the first place when to use vs. using native CSS). I could find 4 (only?), by order:
thick
value toscrollbar-width
w3c/csswg-drafts#10650Now, because we don't show 1. in the demo (nor in code) it makes me feel like this component has little purpose. How about we update the demo to showcase 1. is solved?
In practice, it seems that we need to change the component's implementation:
Benchmark
Overall, I suspect that this component won't be needed in 2-3 years, the platform will fix this. So I don't know if we should spend time on this.
The text was updated successfully, but these errors were encountered: