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:
FlexContainer
is now namedFlex
FlexItem
is nowFlex.Item
, and can be accessed via theFlex
importUnderlineNavItem
is nowUnderlineNav.Item
FilterListItem
is 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
Label
component no longer has thescheme
prop, and introducessize
anddropshadow
props. - The
StateLabel
component was refactored:state
prop is nowscheme
, and supports different values for issue- and PR-specific color/octicon pairings.
🚀 New features
- Typography components (
Text
,Heading
, etc.) now have atextAlign
prop that can be used to responsively adjust thetext-align
CSS property. - Layout components (
Box
, et al) now have a responsiveoverflow
prop that sets the same CSS property.
🐛 Bug fixes
- The
Flex
component (FKAFlexContainer
) now has the missingjustifyItems
prop, which maps to thejustify-items
CSS property.