Skip to content

Why does the Popover have a minimum of left: 12px? #5009

Answered by reidbarber
heisand asked this question in Q&A
Discussion options

You must be logged in to vote

You can pass containerPadding: 0 to usePopover 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.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@heisand
Comment options

Comment options

You must be logged in to vote
2 replies
@snowystinger
Comment options

@heisand
Comment options

Answer selected by heisand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants