Conflict Between sameWidth and overflowPadding in Select Positioning prop #1993
elson-currentcorp
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://stackblitz.com/edit/gb984c?file=src%2FSelect.tsx
If the Select trigger stretches to the full width of the viewport and the Positioning prop has
overflowPadding
set to some value greater than zero, the popover respects the startingoverflowPadding
on the left, but horizontally overflows beyond the bounds of the viewport because ofsameWidth
.Ideally the popover width when sameWidth is true should still attempt to match the triggers width, but be clamped within viewport minus overflowPadding on both sides.
Beta Was this translation helpful? Give feedback.
All reactions