Repository navigation
[scroll area] Add scrolling state to Thumb - #4982
Conversation
| * The component orientation. | ||
| */ | ||
| orientation?: 'horizontal' | 'vertical' | undefined; | ||
| orientation: 'horizontal' | 'vertical'; |
There was a problem hiding this comment.
This change seems consistent with runtime behavior, but it could affect users relying on this type. Do you think it's better to leave outside of the PR? cc @michaldudak @atomiks
There was a problem hiding this comment.
Seems like a correctness fix? ScrollArea.Thumb can only render within ScrollArea.Scrollbar, and the context always provides an orientation, so orientation | undefined was inaccurate
In which case, I'm ok with the change
commit: |
Bundle size
PerformanceTotal duration: 1,158.07 ms -32.68 ms(-2.7%) | Renders: 50 (+0) | Paint: 1,770.64 ms -10.60 ms(-0.6%)
11 tests within noise — details Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Adds the missing
scrollingstate toScrollArea.Thumb, which ends likedata-scrollingin the DOM.