Releases: primer/react
Releases · primer/react
Release list
v8.0.0-beta
❌ Breaking Changes ❌
- The OcticonButton component has been removed. use
<Link><Octicon/><Link>instead #368 - CircleBadge uses
CircleBadge.Iconnow instead of using anOcticon#377
💅 Enhancements
- All components are now using styled-components, and no longer rely on Primer CSS class names 🙌
📝 Documentation
- Documentation has been updated for the changes above ☝️
v7.0.0-beta
🚨 Breaking Changes
- Removed default value for
bgin BorderBox
💅 Enhancements
- Removed
flexfrom FLEX_CONTAINER props and put it in FLEX_ITEM #347 - Stop concatenating
COMMONinto other categories insystem-props.jsand instead do it within each component to make this more explicit #347 - Extend Box from BorderBox, remove default value for bg #358
- Update Octicons #359
📝 Documentation
v6.0.1-beta
v6.0.0-beta
✨ New Components
- AvatarPair #342
🚨 Breaking Changes
- Accessibility tweaks #345,
aria-labelis now set via thearia-labelprop instead ofplaceholder - Component Tweaks #344, lots of docs changes + renamed
schemetostatusinStateLabel - Avatar changes #342, removed
isChildprop. See docs for updated instructions on how to create parent/child avatars 🙌
Other
- Deleted main.workflow #346
v5.0.0-beta
🚀 New features
- Add fontWeights to theme #326
- Link now respects
isprop.
🚨 Breaking Changes
- Removed the
srcandaltprops from CircleBadge. Use animgas a child of CircleBadge, and add alt text there instead. #332 Buttonupdates: #330- added
widthprop - Removed
blockprop
- added
- Removed
ButtonLinkcomponent - users should use a<Link is='button'>for this use case. The model here should beButtonis a UI element that is styled like a button.Linkis a UI element that is styled like a link. You can change the tag as needed. #330 - Removed
border,borderRadius,BorderColorandBoxShadowprops fromBox, added them toBorderBox#329
v4.0.0-beta
💥 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.
v3.0.3-beta
🐛 Bug Fixes
- Ships another fix for Link's
hoverColorprop
v3.0.2-beta
Fixes bug with hoverColor in Link
v3.0.1-beta
💅 Enhancements
hoverColoris now available as a prop onLink- The spacing scale in
theme.jshas been updated to include additional values 🎉
v3.0.0-beta
❌ Breaking Changes ❌
- The MergeStatus component has been removed. This component can easily be created using a StateLabel component. #286
- The Link component no longer takes
schemeormutedprops. Style the color of the link text usingcolorinstead. The Link also now has no underline by default. Addunderlineto override this. #282 - DonutChart & DonutSlice have been renamed to
DonutandDonut.Slice#269
🚀 New features
- There is now a
<BaseStyles>component for establishing typographic styles #276 - Static CSS required by some components is now injected globally — no need for linking or bundling! #285
📝 Documentation
- SideNav links now have active styles #281
- Deployment is always scaled to one instance, fixing slow production loads #289
- Inline SVGs via svgr/webpack #288
- Docs site is now responsive! 🎉 #275
- Standardize asset path prefix & fix index image #274
- Updated component descriptions #287