Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ScrollArea] Handle visibility change and nesting #1598

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

atomiks
Copy link
Contributor

@atomiks atomiks commented Mar 24, 2025

When using ScrollArea inside Select, all the wrappers need role="presentation" to not interfere with the listbox role.

Further, the thumb was not computed when the ScrollArea became visible, and incorrectly reset the scrollbar offset if it had no width/height (such as on hide/unmount).

https://deploy-preview-1598--base-ui.netlify.app/experiments/scroll-area/inside-select

@atomiks atomiks added the component: scroll area This is the name of the generic UI component, not the React module! label Mar 24, 2025
Copy link

netlify bot commented Mar 24, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit c88000e
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/67eb4948482df80008f8dbb3
😎 Deploy Preview https://deploy-preview-1598--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 1, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: scroll area This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant