Skip to content

Add explicit role to child div of ScrollAreaViewport#3801

Open
andrewhayward wants to merge 1 commit intoradix-ui:mainfrom
andrewhayward:patch-1
Open

Add explicit role to child div of ScrollAreaViewport#3801
andrewhayward wants to merge 1 commit intoradix-ui:mainfrom
andrewhayward:patch-1

Conversation

@andrewhayward
Copy link

Description

The ScrollAreaViewport renders a div with a display: table style. This can cause issues in browsers (such as Chrome) that implicitly generate an element role based on specific heuristics; in this case, role: LayoutTable.

By adding an explicit role: presentation to this node, we prevent any guessing by the browser, ensuring that no additional and unexpected semantics are included in the accessibility tree.

The `ScrollAreaViewport` renders a `div` with a `display: table` style. This can cause issues in browsers (such as Chrome) that implicitly generate an element role based on specific heuristics; in this case, `role: LayoutTable`.

By adding an explicit `role: presentation` to this node, we prevent any guessing by the browser, ensuring that no additional and unexpected semantics are included in the accessibility tree.
@changeset-bot
Copy link

changeset-bot bot commented Feb 2, 2026

⚠️ No Changeset found

Latest commit: e0c77e1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@andrewhayward andrewhayward changed the title Update ScrollAreaViewport role of child div Add explicit role to child div of ScrollAreaViewport Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant