Skip to content

[6.x] Long dropdowns should be scrollable#14333

Merged
jasonvarga merged 1 commit into6.xfrom
scrollable-dropdowns
Mar 24, 2026
Merged

[6.x] Long dropdowns should be scrollable#14333
jasonvarga merged 1 commit into6.xfrom
scrollable-dropdowns

Conversation

@duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Mar 24, 2026

This pull request fixes an issue where dropdown menus with many options would overflow the viewport, making some options inaccessible.

This was happening because the DropdownMenuContent component had no max-height constraint, allowing it to grow indefinitely.

This PR fixes it by using reka-ui's --reka-dropdown-menu-content-available-height CSS variable to constrain the dropdown to the available viewport space (minus 16px for edge padding), with scrolling enabled when content exceeds that height.

Before

CleanShot 2026-03-24 at 11 47 13

After

CleanShot 2026-03-24 at 11 46 56

Fixes #14320

@jasonvarga jasonvarga merged commit a91370f into 6.x Mar 24, 2026
19 checks passed
@jasonvarga jasonvarga deleted the scrollable-dropdowns branch March 24, 2026 15:45
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.

The select dropdown for entries doesn't scroll or show all entries when the list is too long

2 participants