Skip to content

[docs][scroll area] Add hover and active states demo - #5958

Open
jsabutis wants to merge 1 commit into
mui:masterfrom
jsabutis:docs/scroll-area-hover-active-1283
Open

jsabutis wants to merge 1 commit into
mui:masterfrom
jsabutis:docs/scroll-area-hover-active-1283

Conversation

@jsabutis

@jsabutis jsabutis commented Oct 9, 2026

Copy link
Copy Markdown

Closes #1283

Adds a "Hover and active states" example to the Scroll Area page. The thumb gets three shades, rest, :hover and :active, in both the CSS Modules and Tailwind versions. The page now explains that data-hovering reveals the scrollbar while :hover targets the thumb itself. The scrollbar's opacity fade turns off under prefers-reduced-motion.

Show that the scrollbar thumb can be styled with standard `:hover` and
`:active` pseudo-classes, and explain how `data-hovering` differs from
hovering the thumb itself.

Closes mui#1283

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pkg-pr-new

pkg-pr-new Bot commented Oct 9, 2026

Copy link
Copy Markdown

commit: 294b9dc

@netlify

netlify Bot commented Oct 9, 2026

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 294b9dc
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6ac90dd0d2d2e70008b17356
😎 Deploy Preview https://deploy-preview-5958--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.

@code-infra-dashboard

code-infra-dashboard Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

Total duration: 464.98 ms +0.26 ms(+0.1%) | Renders: 76 (+0) | Paint: 843.34 ms -6.49 ms(-0.8%)

Test Duration Renders
Scroll Area mount (300 instances) 44.32 ms 🔺+10.81 ms(+32.3%) 3 (+0)
Menu mount (300 instances) 22.69 ms ▼-7.43 ms(-24.7%) 1 (+0)

13 tests within noise — details

Metric alarms

Test Metric Change
Scroll Area mount (300 instances) bench:paint 🔺 +10.61 ms

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

@zannager zannager added the component: scroll area Changes related to the scroll area component. label Oct 12, 2026

This branch has not been deployed

No deployments
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.

[scroll area] Style hover + active state

2 participants