Fix dropdown scroll by restoring scroll container nesting order#18239
Fix dropdown scroll by restoring scroll container nesting order#18239FelixMalfait merged 1 commit intomainfrom
Conversation
|
Hey @ehconitin! After you've done the QA of your Pull Request, you can mark it as done here. Thank you! |
|
Thanks @ehconitin for your contribution! |
Greptile SummaryThis PR fixes dropdown scroll behavior by reversing the nesting order of the scroll container and padding container. Previously, the padding was applied outside the scrollable area, which caused scroll calculation issues. Now the scrollable container is outermost, with padding applied inside.
Confidence Score: 4/5
Important Files Changed
Last reviewed commit: 8e91c87 |
| hasMaxHeight ? DROPDOWN_MENU_ITEMS_CONTAINER_MAX_HEIGHT : undefined | ||
| } | ||
| > | ||
| <StyledExternalContainer role="listbox"> |
There was a problem hiding this comment.
moving role="listbox" inside the scrollable container may affect accessibility tools that expect the scrollable element itself to have this ARIA role
| <StyledExternalContainer role="listbox"> | |
| <StyledScrollableContainer | |
| role="listbox" |

No description provided.