Why does the Popover have a minimum of left: 12px? #5009
-
I am just wondering why the Could there be some way to not use a minimum left value, and instead let the value decrease towards 0 with decreasing padding to the left (at least in combination with a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It's used by our Spectrum implementation, but that seems too opinionated for our hooks/RAC implementations. I think we could consider changing that. |
Beta Was this translation helpful? Give feedback.
-
You can pass https://react-spectrum.adobe.com/react-aria/usePopover.html#container-padding https://react-spectrum.adobe.com/react-aria/Popover.html#container-padding The default is |
Beta Was this translation helpful? Give feedback.
You can pass
containerPadding: 0
tousePopover
to override this. The RAC Popover also supports this prop.https://react-spectrum.adobe.com/react-aria/usePopover.html#container-padding
https://react-spectrum.adobe.com/react-aria/Popover.html#container-padding
The default is
12px
, but I'm not sure we want to change the default now since people may be relying on the default behavior.