-
-
Notifications
You must be signed in to change notification settings - Fork 271
Closed
Labels
component: scroll areaChanges related to the scroll area component.Changes related to the scroll area component.customizationtype: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.
Description
Feature request
I attempted styling ScrollArea with a hard scrollbar and ended up with a selector that looked like this:
.ScrollAreaViewport {
height: 100%;
&:has(+ .ScrollAreaScrollbar[data-orientation='horizontal']) {
padding-bottom: 1.5rem;
}
}I think we need data attributes both on Root and Viewport to target this comfortably.
Naming ideas:
data-has-overflow-x/data-has-overflow-ydata-has-vertical-scrollbar/data-has-horizontal-scrollbar
cloud-walker and ciampobrunorguerra
Metadata
Metadata
Assignees
Labels
component: scroll areaChanges related to the scroll area component.Changes related to the scroll area component.customizationtype: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.