Skip to content

fix(scroll-area): use block display on viewport content wrapper#3975

Open
fayonation wants to merge 1 commit into
radix-ui:mainfrom
fayonation:fix/scroll-area-display-table-3646
Open

fix(scroll-area): use block display on viewport content wrapper#3975
fayonation wants to merge 1 commit into
radix-ui:mainfrom
fayonation:fix/scroll-area-display-table-3646

Conversation

@fayonation

Copy link
Copy Markdown

Summary

  • Changes the ScrollArea viewport content wrapper from display: table to display: block
  • Adds a regression test for the layout behavior

Fixes #3646

Problem

display: table on the viewport content wrapper causes layout issues in flex and resizable containers.

Test plan

  • pnpm vitest run packages/react/scroll-area/src/scroll-area.test.tsx
  • Storybook Basic — content scrolls and layout renders correctly
  • CI passes on PR

Made with Cursor

Replace display: table with display: block to prevent layout breakage
in flex and resizable containers. Fixes radix-ui#3646.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

div with display: table in ScrollArea's ViewPort breaks layout

1 participant