Wildcard: [MenuButton] Fix reach menu position prop drilling warning
Created by: vovakulikov
This PR just spreads a special popover prop (popoverContentPosition
) and aligns Popover
position prop with it.
Prior to this PR, we had a warning message from React about passing popoverContentPosition
to the real jsx Dom element.
Test plan
- Open storybook
MenuButton
stories in dev mode - Open the menu by clicking on the button
- See no warnings in browser console