Releases: primer/react
Releases · primer/react
v9.0.0-beta
🚨 Breaking Changes 🚨
- The Dropdown component has been refactored and has a fully new API, included new nested components:
Dropdown.Button
,Dropdown.Menu
andDropdown.Item
. Check out the Dropdown documentation for more details: https://primer.style/components/docs/Dropdown
💅 Enhancements
- Replacing remaining uses of
themeGet
with customget
from our constants file #390 - Refactored Dropdown component #391
- Add fontStyle prop to TYPOGRAPHY #388
🐛 Bug Fixes
- Remove default value of
div
fromis
prop on Button #386
📝 Documentation
- Updated theming docs #385
v8.2.0-beta
Accidentally versioned this as 8.2.0-beta when it should have been 8.1.0-beta, so there is a skipped version.
💅 Enhancements
- Adds
is
prop to a few more components 🙌
🐛 Bug fix
- Moves
styled-components
to dependencies instead of devDependencies
v8.0.0-beta
❌ Breaking Changes ❌
- The OcticonButton component has been removed. use
<Link><Octicon/><Link>
instead #368 - CircleBadge uses
CircleBadge.Icon
now 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
bg
in BorderBox
💅 Enhancements
- Removed
flex
from FLEX_CONTAINER props and put it in FLEX_ITEM #347 - Stop concatenating
COMMON
into other categories insystem-props.js
and 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
💅 Enhancements
- @shawnbot added codemods for helping folks upgrade from major versions 1-4! 🎉
v6.0.0-beta
✨ New Components
- AvatarPair #342
🚨 Breaking Changes
- Accessibility tweaks #345,
aria-label
is now set via thearia-label
prop instead ofplaceholder
- Component Tweaks #344, lots of docs changes + renamed
scheme
tostatus
inStateLabel
- Avatar changes #342, removed
isChild
prop. 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
is
prop.
🚨 Breaking Changes
- Removed the
src
andalt
props from CircleBadge. Use animg
as a child of CircleBadge, and add alt text there instead. #332 Button
updates: #330- added
width
prop - Removed
block
prop
- added
- Removed
ButtonLink
component - users should use a<Link is='button'>
for this use case. The model here should beButton
is a UI element that is styled like a button.Link
is a UI element that is styled like a link. You can change the tag as needed. #330 - Removed
border
,borderRadius
,BorderColor
andBoxShadow
props 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:
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.
v3.0.3-beta
🐛 Bug Fixes
- Ships another fix for Link's
hoverColor
prop
v3.0.2-beta
Fixes bug with hoverColor in Link