Skip to content

[scroll area] Add scrolling state to Thumb - #4982

Merged
aarongarciah merged 2 commits into
mui:masterfrom
aarongarciah:scrollarea-thumb-data-scrolling
Jun 10, 2026
Merged

aarongarciah merged 2 commits into
mui:masterfrom
aarongarciah:scrollarea-thumb-data-scrolling

Conversation

@aarongarciah

@aarongarciah aarongarciah commented Jun 8, 2026 •

Copy link
Copy Markdown
Member

Adds the missing scrolling state to ScrollArea.Thumb, which ends like data-scrolling in the DOM.

@aarongarciah aarongarciah added the component: scroll area Changes related to the scroll area component. label Jun 8, 2026
* The component orientation.
*/
orientation?: 'horizontal' | 'vertical' | undefined;
orientation: 'horizontal' | 'vertical';

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@atomiks atomiks Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@pkg-pr-new

pkg-pr-new Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
  • base-ui-tanstack-start

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/react@4982
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@4982
    

commit: 39e9961

@code-infra-dashboard

code-infra-dashboard Bot commented Jun 8, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 🔺+57B(+0.01%) 🔺+18B(+0.01%)

Details of bundle changes

Performance

Total duration: 1,158.07 ms -32.68 ms(-2.7%) | Renders: 50 (+0) | Paint: 1,770.64 ms -10.60 ms(-0.6%)

Test Duration Renders
Slider mount (300 instances) 194.68 ms 🔺+34.96 ms(+21.9%) 3 (+0)

11 tests within noise — details


Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Jun 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 39e9961
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a290e97fa27910008a3354a
😎 Deploy Preview https://deploy-preview-4982--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@aarongarciah
aarongarciah removed the request for review from flaviendelangle June 8, 2026 12:23
@aarongarciah
aarongarciah merged commit 6a86828 into mui:master Jun 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: scroll area Changes related to the scroll area component.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants