Releases: primer/react
@primer/[email protected]
Minor Changes
-
#5253
729c0faThanks @hussam-i-am! - Deprecate width, minWidth and maxWidth props from TextInput -
#5169
a2efba0Thanks @francinelucca! - fix(ActionList): do not truncate description by default -
#5254
ac6ddcdThanks @hussam-i-am! - Convert UnstyledTextInput to use CSS Modules behing feature flag -
#5246
c4ecb73Thanks @keithamus! - Migrate DialogV1 to CSS Modules
Patch Changes
-
#5277
a9088e6Thanks @langermank! - FixTreeViewItemfolder icon color in legacy fallback theme + update VRT -
#4745
3f508c7Thanks @cihad! - UnderlineNav: Display loading counters only for items with the "counter" prop. -
#5283
d6ea909Thanks @jonrohan! - Move VisuallyHidden component from team to staff flag -
#5292
d3959f3Thanks @jonrohan! - Move Stack component from team to staff flag -
#5280
973130eThanks @jonrohan! - Move Checkbox CSS module feature flag from staff to ga
@primer/[email protected]
Minor Changes
-
#5221
11c455cThanks @jonrohan! - Remove the CSS modules feature flag from Avatar -
#5243
bc9c696Thanks @hussam-i-am! - Fix small TextInput to be the use the correct font size -
#5228
2da7336Thanks @jonrohan! - feat(Tooltip): Convert Tooltip to CSS modules behind team flag -
#5122
e021a8fThanks @TylerJDev! - TreeView: Adds proptruncate, keeps default behavior of truncation but allows for text to wrap when turned off. -
#5210
b1950f5Thanks @francinelucca! - feat(AnchoredOverlay): allow overlay to reflow
Patch Changes
@primer/[email protected]
Minor Changes
- #5204
209c9b0Thanks @randall-krauskopf! - Migrate 'InlineMessage' component to use CSS modules
Patch Changes
-
#5229
33c5086Thanks @joshblack! - Update Blankslate description text to always be centered -
#4693
570d4b3Thanks @renbaoshuo! - fix: hover background in ActionList.Item -
#5196
49cbff2Thanks @francinelucca! - fix(Treevieew):do not add aria-describedby attribute when empty leading/trailing visual -
#5144
271d063Thanks @jonrohan! - Move ButtonGroup css module feature flag to staff
@primer/[email protected]
Minor Changes
-
#5168
b9749d4Thanks @TylerJDev! - TreeView: Adds indication of no nodes in a tree item, allows for `aria-expanded even if the item is empty. -
#5202
293c574Thanks @hussam-i-am! - UpdateSubNavcomponent to use CSS modules behind the feature flag primer_react_css_modules_team
Patch Changes
@primer/[email protected]
Permalink to storybook
Minor Changes
-
#5156
8e58e4dThanks @francinelucca! - feat(LabelGroup): render as list by default -
#5167
07b75e7Thanks @jonrohan! - Convert Details to css module behind feature flag -
#5195
d349cfcThanks @jonrohan! - * Convert SkeletonAvatar to CSS modules behind the feature flag- Convert SkeletonBox to CSS modules behind the feature flag
- Convert SkeletonText to CSS modules behind the feature flag
-
#5187
2ab7b9eThanks @jonrohan! - Convert Radio to css modules behind feature flag -
#5129
e27decdThanks @TylerJDev! - Overlay: Addsmin-widthto container to improve responsiveness -
#5040
8d9a357Thanks @joshblack! - Update BranchName to use CSS Modules behind feature flag -
#5188
573ae51Thanks @randall-krauskopf! - MigratedSpinnercomponent to use support CSS modules -
#5193
ed3d8c1Thanks @randall-krauskopf! - MigratedVisuallyHiddento CSS Modules -
#4878
73312d8Thanks @TylerJDev! - Movearia-*attributes toProgressBar.Itemand marksProgressBar.Itemas `role="progressbar". -
#5194
719def7Thanks @randall-krauskopf! - MigrateSelectcomponent to css modules -
#5192
cbeed21Thanks @hussam-i-am! - UpdateHeadercomponent to use CSS modules behind the feature flag primer_react_css_modules_team -
#5015
1473c26Thanks @francinelucca! - feat(Details): Add summary subcomponent -
#5197
ad84d4fThanks @randall-krauskopf! - ConvertPageheadto CSS Modules -
#5134
6713e72Thanks @TylerJDev! - AvatarStack: Adds keyboard support toAvatarStack -
#5060
33396eaThanks @jonrohan! - Remove CSS modules feature flag from Label component -
#5185
461ae57Thanks @broccolinisoup! - SelectPanel: Allow using SelectPanel in FormControl -
#5148
002be35Thanks @jonrohan! - Remove the CSS modules feature flag from the Link component -
#5106
851c857Thanks @mperrotti! - Adds NavList.GroupHeading component that can be used instead of the ActionList.Group 'title' prop if you need to render something besides a string
Patch Changes
-
#5213
a5d7fe3Thanks @langermank! - Bug fix:ButtonBasesx base styles leaking into CSS modules feat flag -
#5214
916ed95Thanks @jonrohan! - Convert Stack to CSS modules behind feature flag -
#5146
ad554daThanks @jonrohan! - Move Checkbox css module feature flag to staff -
#5171
8138deeThanks @alondahari! - catch TooltipV2 errors in old browsers as a temp fix for unnecessary Sentry reports -
#5140
73796d3Thanks @francinelucca! - fix(SegmentedControl): set global focus styles -
#5201
29a9770Thanks @joshblack! - Update the foreground color for FormControl.Caption to use the control tokens when disabled -
#5182
31d9a05Thanks @francinelucca! - fix(DataTable): export datatable utility types -
#5027
9a30c63Thanks @francinelucca! - fix(FormControl): allow required check boxes in CheckboxGroup -
#5147
e421f32Thanks @jonrohan! - Move CounterLabel css modules feature flag to staff
@primer/[email protected]
Patch Changes
- #5162
a5feea7Thanks @joshblack! - Update generated docs for draft components to use experimental instead
@primer/[email protected]
Permalink to storybook
In this release, we're beginning a transition of Primer React from styled-components to CSS Modules. In addition, we promoted several components that have been improved for accessibility and removed components that have been deprecated.
For more information about this release, check out our discussion post. If you run into any issues when migrating, or have any questions or feedback, we'd love to hear from you in that discussion!
Major Changes
-
#4953
04e8c9cThanks @iansan5653! - Delete deprecated draft componentsMarkdownEditor,MarkdownInput, andInlineAutocomplete -
#4800
482b4d6Thanks @joshblack! - Update Primer React to emit _.css files that are imported by emitted _.js files for styling -
#4992
d1d911aThanks @joshblack! - Move Octicon, Pagehead, Dialog (v1), and Tooltip (v1) to@primer/react/deprecated -
#4783
7c57f40Thanks @joshblack! - Remove the SSRProvider component and useSSRSafeId hook -
#5075
de7dbdeThanks @joshblack! - Remove wildcard exports from@primer/react -
#4784
b518005Thanks @joshblack! - Remove temporary folders for TypeScript resolution of sub-paths -
#4785
b74c47fThanks @joshblack! - The drafts entrypoint has been removed from @primer/react. Use
@primer/react/experimental instead. -
#4940
4d3b504Thanks @langermank! - Refactor ButtonBase component to use CSS modules behine flag -
#4781
2d7307aThanks @joshblack! - Remove the deprecated FilterList component from Primer React -
#4807
055c9a7Thanks @langermank! - Remove deprecatedButtoncomponent
Minor Changes
-
#5097
2a3c473Thanks @randall-krauskopf! - Added className prop to the AvatarStack component -
#5113
c28378eThanks @randall-krauskopf! - AddclassNameprop toFormControl.Labelcomponent -
#4814
1cda89cThanks @langermank! - Addlinkvariant to Button -
#4965
5426a9aThanks @joshblack! - Update CounterLabel to use CSS Modules behind feature flag -
#5064
29f33ceThanks @broccolinisoup! - Tooltip: Do not export all types publicly in the experimental bundle -
#4956
15cb90fThanks @francinelucca! - fix(PageHeader): add role prop and aria-label in top-level element -
#4939
9936addThanks @TylerJDev! - Addsaria-describedbyforLeadingVisualandTrailingVisualinTextInput; adds new proploaderTextto convey loading state to screen readers -
#4804
fd2c705Thanks @joshblack! - Remove experimental TabPanels component in preference of UnderlinePanels -
#4771
92e05f7Thanks @TylerJDev! - SetopenOnFocusdefault tofalse, making the menu closed initially rather than opening on focus of input -
#4798
0fa60a4Thanks @joshblack! - Add the deprecated Dialog, Octicon, Pagehead, TabNav, and Tooltip components to @primer/react/deprecated -
#4951
c9009deThanks @francinelucca! - fix(Pagination): Use anchor instead of button for disabled prev/next controls -
#4834
7ce1fdaThanks @langermank! - Addsizeandweightprops toText -
#5010
8385c33Thanks @joshblack! - Promote Dialog, Tooltip, and Stack from@primer/react/experimentalto@primer/react -
#4962
1977a68Thanks @joshblack! - Update Checkbox component to use CSS Modules behind feature flag -
#5102
2742ee5Thanks @randall-krauskopf! - Addclassnameprop support toActionList.Descriptioncomponent -
#4976
f448b1bThanks @joshblack! - Add certain wildcard exports to named entry points -
#4819
0112347Thanks @joshblack! - Update Heading component to use CSS Modules behind feature flag -
#4913
6c9121eThanks @joshblack! - Update Banner to use CSS Modules behind feature flag -
#4893
1b098edThanks @jonrohan! - Refactor Label to use CSS modules behind the primer_react_css_modules_team feature flag -
#4884
46dc2f3Thanks @langermank! - Bumpprimer/primitivesv9 -
#5099
cb21a38Thanks @joshblack! - Add ButtonBase to@primer/react/experimentalto help with wildcard import interop -
#4994
be58fffThanks @camertron! - [SegmentedControl, Autocomplete] Support passing React.ReactElements for icons. -
#4750
414c140Thanks @iansan5653! - AddKeybindingHintcomponent for indicating an available keyboard shortcut -
#5074
e4965edThanks @joshblack! - Add the `useFeatureFlag...
@primer/[email protected]
Minor Changes
-
#5097
2a3c473Thanks @randall-krauskopf! - Added className prop to the AvatarStack component -
#5113
c28378eThanks @randall-krauskopf! - AddclassNameprop toFormControl.Labelcomponent -
#5102
2742ee5Thanks @randall-krauskopf! - Addclassnameprop support toActionList.Descriptioncomponent -
#5099
cb21a38Thanks @joshblack! - Add ButtonBase to@primer/react/experimentalto help with wildcard import interop -
#4994
be58fffThanks @camertron! - [SegmentedControl, Autocomplete] Support passing React.ReactElements for icons. -
#5100
b0d858aThanks @francinelucca! - fix(ProgressBar): add aria-valuetext attribute -
#5115
e94f0a1Thanks @randall-krauskopf! - Add 'className' prop toDialogcomponent -
#5130
661e94cThanks @randall-krauskopf! - AddclassNameprop support toTextareacomponent
Patch Changes
-
#5126
f574372Thanks @langermank! - Add support foraria-disabledinButton -
#5128
adf8c4fThanks @stephaniegiang! - Update confirmation dialog body to default color. Removing the muted color override. -
#5041
4da550eThanks @francinelucca! - fix(TooltipV2): always add aria-hidden -
#5132
623a411Thanks @langermank! - Bug fix: ActionList Group className prop -
#5111
802568aThanks @joshblack! - Update CSS styles for CounterLabel to allow overrides for color, background color
@primer/[email protected]
Minor Changes
-
#5064
29f33ceThanks @broccolinisoup! - Tooltip: Do not export all types publicly in the experimental bundle -
#5010
8385c33Thanks @joshblack! - Promote Dialog, Tooltip, and Stack from@primer/react/experimentalto@primer/react -
#5074
e4965edThanks @joshblack! - Add theuseFeatureFlaghook to@primer/react/experimental
Patch Changes
-
#5059
682e787Thanks @gwwar! - Fixes negative and invalid pages in data table pagination on re-render. -
#5078
3b7bf41Thanks @jonrohan! - Set themin-widthofIconButtontounsetto resolve layout issues. -
#5062
0f5d5e0Thanks @jonrohan! - Move CSS modules feature flag from staff to ga for Avatar component -
#5082
212714cThanks @langermank! - Add focus styles to Pagination component -
#5077
6490b27Thanks @jonrohan! - Bug fix(Avatar): Changed rounded border calculation for the "square" Avatar to better align with existing border styles -
#5055
73135c1Thanks @francinelucca! - fix(Banner): rewrite PrimaryAction & SecondaryAction types -
#5068
5f7bd0bThanks @jonrohan! - fix fortoggleStyledComponentutility, When the feature flag is enabled and sx prop is passed in use, Box -
#5091
4218befThanks @jonrohan! - Bug fix forIconButtonto respect thestyleprop width when the feature flag is on. -
#5073
472967aThanks @siddharthkp! - SelectPanel: Fix items not being selected when defined within scope (track selection by item.id) -
#5066
702ba5cThanks @jonrohan! - Use the IconButton for the close button on Dialog -
#5079
a2e5671Thanks @jonrohan! - Correctly pass styled system typography and common props to theBoxcomponent in theTextcomponent when the CSS modules feature flag is enabled.
@primer/[email protected]
Permalink to storybook
Minor Changes
- #5021
cff067aThanks @joshblack! - Add ResponsiveValue type to@primer/reactentrypoint
Patch Changes
- #5053
2703d0cThanks @siddharthkp! - Banner: Fix margin for inline actions