Hotfixes: Update SelectMenu.Item type & extend Box in Position#803
Hotfixes: Update SelectMenu.Item type & extend Box in Position#803emplums merged 5 commits intorelease-19.0.0from
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primer-components/ncq2vyaap |
| StyledSystem.PositionProps, | ||
| StyledSystem.ZIndexProps, | ||
| StyledSystem.TopProps, | ||
| StyledSystem.RightProps, | ||
| StyledSystem.BottomProps, | ||
| StyledSystem.LeftProps {} |
There was a problem hiding this comment.
I removed all of these because they are already included in the definition for StyledSystem.PositionProps
There was a problem hiding this comment.
I removed BaseProps because the two components that extend PositionProps (Position & Popover) already are including BaseProps in their definition
| CommonProps, | ||
| LayoutProps, | ||
| Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {} |
There was a problem hiding this comment.
these are all included in BoxProps
|
@BinaryMuse if you could review this again, I've added one more change. I also think we should consider putting |
|
One thing I forgot — we should update the |
|
@BinaryMuse good catch! 💯 more points for automating this eventually 😂 |
A couple of hotfixes after reviewing the 19.0.0 release:
asprop onSelectMenu.Itemoptionalalignprop to work. Which made me realize the thePositionfamily of components should have all the same props asBoxbut they don't because we weren't extendedBoxso I fixed that.