v4.0.0-beta
Pre-release
Pre-release
💥 Breaking changes
The big, breaking change in this release is that we've changed some component names and moved some "child" components under the parent one:
FlexContaineris now namedFlexFlexItemis nowFlex.Item, and can be accessed via theFleximportUnderlineNavItemis nowUnderlineNav.ItemFilterListItemis nowFilterList.Item
When migrating from previous versions, you'll need to do a search and replace for all of the above component names, then remove any leftover instances of Flex.Item, UnderlineNav.Item, and FilterList.Item in your named imports of @primer/components.
Two of our label components have also undergone some API refactoring:
- The
Labelcomponent no longer has theschemeprop, and introducessizeanddropshadowprops. - The
StateLabelcomponent was refactored:stateprop is nowscheme, and supports different values for issue- and PR-specific color/octicon pairings.
🚀 New features
- Typography components (
Text,Heading, etc.) now have atextAlignprop that can be used to responsively adjust thetext-alignCSS property. - Layout components (
Box, et al) now have a responsiveoverflowprop that sets the same CSS property.
🐛 Bug fixes
- The
Flexcomponent (FKAFlexContainer) now has the missingjustifyItemsprop, which maps to thejustify-itemsCSS property.