From 5c7f0e969012817f875901e9f72851a3ce23f578 Mon Sep 17 00:00:00 2001 From: Mike Perrotti Date: Thu, 24 Feb 2022 16:21:51 -0500 Subject: [PATCH] adds changeset --- .changeset/heavy-points-marry.md | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .changeset/heavy-points-marry.md diff --git a/.changeset/heavy-points-marry.md b/.changeset/heavy-points-marry.md new file mode 100644 index 00000000000..973cb58ef96 --- /dev/null +++ b/.changeset/heavy-points-marry.md @@ -0,0 +1,43 @@ +--- +'@primer/react': major +--- + +![NewLabels](https://user-images.githubusercontent.com/2313998/155384037-8a56c943-4cff-4349-925b-dc28247e3491.png) + +The Label component has been updated to align with [Primer ViewComponents' Label component](https://primer.style/view-components/components/label). Now the React component is consistent ViewComponents and the intent of the design team. + +Major changes in the new Label component: + +- No more `medium` size - only `small` and `large` +- Labels are outlined by default, so the `outline` prop has been removed +- Custom text and background colors are discouraged, but still possible via the `sx` prop + +If you were using the `Label` component to render issue/PR labels, use the [IssueLabelToken](https://primer.style/react/Token#issuelabeltoken) component instead. + + + + + + + + + +
Before After
+ +```jsx +import {Label} from "@primer/react" + + + +``` + + + +```jsx +import {Label} from "@primer/react" + + + +``` + +