Releases: primer/react
v35.29.0
Permalink to documentation
Minor Changes
-
#3692
4046e058Thanks @broccolinisoup! - Octicons: Upgrade react-octicons to v19.7.0 -
#3647
e480a4a4Thanks @paxos! - AddsonSelectSuggestioncallback toInlineAutocomplete -
#3607
c0e22fc1Thanks @langermank! - UpdateActionListcheckbox styles to form checkbox styles (impactsActionMenuandSelectPanel) -
#3632
3a8b841cThanks @iansan5653! - Allow consumers to make components that are compatible withFormControlby reading forwarded props in from theuseFormControlForwardedPropshook
Patch Changes
-
#3675
ade10e64Thanks @radglob! -PageLayout.Contentno longer renders asmainby default. Instead, developers may add amainlandmark withinPagelayout.Contentthemselves. -
#3709
edc0168eThanks @mperrotti! - Fixes a bug where children ofAvatarStackwould still show a transition when the component re-renders with a different number of children. Fixes #3688 -
#3698
d759fd32Thanks @gracepark! - Adds thedefaultOpenprop toNavList.Item -
#3662
2ca670a8Thanks @joshblack! - Update type exports to prevent missing export warnings -
#3654
556d826aThanks @langermank! - UsecontrolCSS var with fallback for form componentborder-color -
#3689
5d992715Thanks @jdrush89! - Fix dialog bug where escape would move focus when dialog was closed
v35.28.0
Permalink to documentation
Minor Changes
-
#3563
3bb6dc8cThanks @radglob! - Add option to specify custom widths for PageLayout.Pane via thewidthprop.
Patch Changes
-
#3619
d4ae582bThanks @gr2m! - Includeborder*Colorproperties in sx to support named Primer colors -
#3561
94e8d38fThanks @joshblack! - Update @react-aria/ssr dependency to ^3.5.0 to address server-side rendering mismatch when using React StrictMode -
#3613
dbcd4072Thanks @langermank! - [Bug] Removeflexfrom Button labels -
#3579
66482a72Thanks @radglob! - Add aria-selected value to ActionList.Item. -
#3614
709024ffThanks @iansan5653! - Automatically repositionInlineAutocompletesuggestions depending on available space -
#3609
f487a8d6Thanks @iansan5653! - ExposeuseSlotsfromdrafts/hooks -
#3611
ace603d8Thanks @siddharthkp! - NavList: Fix when subNav opens automatically and shows current indicator
v35.27.1
Permalink to documentation
Patch Changes
-
#3589
d598a53bThanks @siddharthkp! - - PageLayout: Undo deprecation ofpositionprop for PageLayout.Pane (Revert #3389)- SplitPageLayout: Undo deprecation of
positionprop for SplitPageLayout.Pane (Revert #3389)
- SplitPageLayout: Undo deprecation of
v35.27.0
Permalink to documentation
Minor Changes
-
#3510
bdbcfd15Thanks @camertron! - Implement accessibility audit feedback for ToggleSwitch -
#3466
11b54ac8Thanks @mperrotti! - Allows consumers to disable the behavior where the AvatarStack expands to show each Avatar on hover. There are also changes that allow users to customize the size of the avatars - even responsively! -
#3390
b4e15b84Thanks @mperrotti! - The showPages prop on both Pagination components can now accept a responsive value. -
#3496
11cdbdccThanks @joshblack! - Update dependency ranges to use caret ranges instead of pinned versions
Patch Changes
-
#3264
5e655203Thanks @mperrotti! - Adds truncation features to the LabelGroup component:- truncate LabelGroup children after a static number of children (for example, truncate after the 5th label)
- truncate LabelGroup children to fit in the width of the parent
- show full list in an Overlay
- show full list inline
-
#3505
c3f1e3c7Thanks @siddharthkp! - ActionList: Fix icon and description hover colors for danger variant -
#3520
daee9a9cThanks @mattcosta7! - passthrough dom props on toggleswitch -
#3441
90a145ccThanks @tomthorogood! - Renders docs.json markdown content -
#3540
a90350ccThanks @kendallgassner! - Css styled block fixes -
#3490
8d1d5146Thanks @langermank! - Bug fix: ActionList item label weight and spacing if description exists -
#3361
bea39c24Thanks @broccolinisoup! - UnderlineNav2: underline nav items' selected state can be managed by the app state -
#3533
33b60551Thanks @amarmanhala! - Changed div tag to HTML semantic tag header for Header (file Header.tsx) component. -
#3516
33d43459Thanks @danielguillan! - ActionList: Fixes the width of items for the full variant -
#3517
cf9d8a5eThanks @kendallgassner! - Adding aria-attributes and role to the ProgressBar component -
#3539
c02f3a2fThanks @mperrotti! - Adds 'display' text size to PRC theme. This size is described in our typography documentation, but was never added to our React theme. -
#3537
311c8c91Thanks @kendallgassner! - Make checkmark visible on reduced-motion -
#3491
263d5978Thanks @nicolleromero! - MarkdownViewer: Address scenario in useListInteraction where the position calculation can be incorrect when tasklists appear above legacy task lists -
#3447
40808db7Thanks @jesskuo4! - [Bug] Leading & Trailing Visual Colors for Button -
#3562
53791841Thanks @iansan5653! - FixMarkdownEditorfile uploads inserting the URL into the wrong input when an overlay is open -
#3547
7ef802e8Thanks @mperrotti! - Prevents body scroll when Dialog (the newer Dialog) is open
v35.26.1
Permalink to documentation
Patch Changes
-
#3446
650a46d5Thanks @broccolinisoup! - UnderlineNav2: Correct the icon colours to befg.muted -
#3423
af32ec79Thanks @japf! - improve performance of the MarkdownEditor component when fullHeight is enabled -
#3437
b298c326Thanks @mattcosta7! - update icon types and primer octicons -
#3476
379d947eThanks @siddharthkp! - ActionMenu: Fix missing divider for first item when the menu is open with mouse -
#3489
c79e78c7Thanks @adrianababakanian! - Removearia-hidden=truefromspans with required asterisk -
#3196
21fa73cdThanks @iansan5653! - FixuseDynamicTextareaHeightinitial render with slots -
#3413
4dc719c4Thanks @colebemis! - TreeView: Ignore arrow key events when combined with cmd or alt keys to avoid interfering with native browser shortcuts. -
#3411
295c4bcdThanks @dusave! - FixDialog2backdrop color variable -
#3440
99a641bdThanks @joshblack! - Add the experimental folder to the npm package for @primer/react
v35.26.0
Permalink to documentation
Minor Changes
-
#3346
63049234Thanks @siddharthkp! - ActionMenu: Callingevent.preventDefaultinsideonSelectofActionList.Itemwill prevent the default behavior of closing the menu -
#3276
8abf2688Thanks @joshblack! - Add experimental Table.ErrorDialog component -
#3244
42a78c11Thanks @Bestra! - Add pullQueued state to StateLabel -
#3229
c0cbdd08Thanks @colebemis! - AddminWidth prop toPageLayout.PaneandSplitPageLayout.Pane` -
#3343
786013e3Thanks @mperrotti! - Allows up to 4 levels of nesting in the NavList component. -
#3199
bfd9e0c8Thanks @joshblack! - Add support for Pagination in DataTable -
#3311
00cf2e3fThanks @colebemis! - SelectPanel: Addtitleprop -
#3148
ac437bb1Thanks @jonrohan! - Rename component StyledOcticon to Octicon -
#3322
c0b2fcfbThanks @colebemis! - SelectPanel: Addsubtitleprop -
#3295
e71d928cThanks @joshblack! - Add @primer/react/experimental entrypoint as an alternative to drafts
Patch Changes
-
#3121
3ad56486Thanks @mperrotti! - Changes the alignment of the validation message icon to be vertically center-aligned with the first line of text. -
#3270
6f2340ccThanks @langermank! - Button counter contrast fixes -
#3207
6773b90dThanks @colebemis! -MarkdownVieweris now SSR-compatible -
#3310
5746c746Thanks @colebemis! - SelectPanel: Addrole="dialog"to overlay -
#3368
c8095a1dThanks @mperrotti! - Correct disabled Button icon fill colors -
#3312
56c9dd2bThanks @colebemis! - SelectPanel: Add filter input label and description -
#3332
ff8c6858Thanks @siddharthkp! - Movelodash.isemptyandlodash.isobjectfromdevDependenciestodependencies -
#3200
63d8ad6dThanks @broccolinisoup! - UnderlineNav2: Add a z-index to make it appear on the top of the stack -
#3350
524120c0Thanks @langermank! - Loosen@primitivesdependency -
#3300
5d067381Thanks @jdrush89! - Fixing toggle bug on Treeview when it initially receives focus -
#3277
0ac31da8Thanks @adrianababakanian! -Pagination: Use<button>instead of<span>for disabled prev/next controls to improve accessibility -
#3262
7f2ddcecThanks @mattcosta7! - passthrough form control label props -
#3316
2cf7cddaThanks @colebemis! - SelectPanel: Announce changes to screen readers -
#3325
3ece2f6bThanks @siddharthkp! - Remove chroma-js dependency. Companion to #3243 -
#3182
7827c711Thanks @green6erry! - Removed default aria-live polite -
#3291
1378bc1fThanks @mattcosta7! - Counter label forwards refs and dom props
v35.25.1
Patch Changes
Permalink to documentation
-
#3174
d4c6ae5bThanks @colebemis! -MarkdownEditoris now SSR-compatible.Warning: In this new implementation,
MarkdownEditor.Toolbar,MarkdownEditor.Actions, andMarkdownEditor.Labelmust be direct children ofMarkdownEditor. -
#3209
a6279536Thanks @langermank! - Remove--primerprefix from CSS var -
#3173
6b900e90Thanks @colebemis! -ActionListandNavListare now SSR-compatible.Warning: In this new implementation,
ActionList.LeadingVisual,ActionList.TrailingVisual,andActionList.Descriptionmust be direct children ofActionList. The same applies toNavList. -
#3198
a273748bThanks @langermank! - Bug fix:ButtonGroupborders show incorrectly on hover
v35.25.0
Permalink to documentation
Minor Changes
-
#3186
2b147794Thanks @joshblack! - Modules under an internal export pattern are not able to be imported from outside @primer/react -
#3090
1b8bb16fThanks @kendallgassner! - Experimental Support: exporting useResponsiveValue -
#3055
42037c98Thanks @joshblack! - Add Table.Skeleton component
Patch Changes
-
#3124
5b3cf499Thanks @mattcosta7! - replace createRef with useRef -
#3149
4c2d121fThanks @colebemis! -FormControlis now SSR-compatible.Warning: In this new implementation,
FormControl.Caption,FormControl.Label,FormControl.LeadingVisual, andFormControl.Validationmust be direct children ofFormControl. -
#3114
f5c7f299Thanks @radglob! - Adds the option to declare multiple segments in a ProgressBar. -
#3127
5224fcbfThanks @siddharthkp! - Suppress SSR warning for useLayoutEffect in NavList, use useIsomorphicLayoutEffect instead of useLayoutEffect -
#3165
d749f495Thanks @broccolinisoup! - UnderlineNav2: Add transparent outline for focus to support WHCM -
#3120
9e40fdf4Thanks @simurai! - Bump @primer/primitives to7.11.5 -
#3093
8b5307daThanks @simurai! - Bump @primer/primitives to7.11.3 -
#3097
a38c00e6Thanks @colebemis! -TreeViewis now SSR-compatible.Warning: In this new implementation,
TreeView.LeadingVisualandTreeView.TrailingViewmust be direct children ofTreeView.Item. -
#3170
1f2df9b7Thanks @lukasoppermann! - When an inline description is added to the item the normal text is set to bold -
#3160
4b05b19eThanks @joshblack! - Update PageLayout.Pane to provide a warning instead of an error when overflow is detected and no label has been provided -
#3094
16cae51aThanks @mperrotti! - Fixes styling issue where PointerBox would show a border between the caret and the box if the background color was transparent. -
#3112
bd4e1393Thanks @langermank! - Adds shadow and color change to IssueLabelToken on hover -
#3146
a19b721cThanks @colebemis! -CheckboxGroupandRadioGroupare now SSR-compatible.Warning: In this new implementation,
CheckboxGroup.Caption,CheckboxGroup.Label,andCheckboxGroup.Validationmust be direct children ofCheckboxGroup. The same applies toRadioGroup.
v35.24.0
Permalink to documentation
Minor Changes
-
#3071
681e2271Thanks @mperrotti! - Adds a helper component for rendering placeholder text to explain why a DataTable cell has no content. -
#3089
4a6a9f73Thanks @mperrotti! - Adds the ability to exclose indentation for flat tree views. -
#3011
f8132d8eThanks @edersonlucas! - Add thetooltipDirectionproperty to theTextInput.Actioncomponent to make the tooltip position flexible.
Patch Changes
-
#3085
bf8c73b4Thanks @mperrotti! - Renames DataTable 'shrink' column width to 'growCollapse' -
#3104
e46e33b8Thanks @iansan5653! - FixIssueLabelTokentreating alternative light schemes as dark
v35.23.0
Permalink to documentation
Minor Changes
-
#3068
09e11335Thanks @mperrotti! - Adds text alignment option to columns -
#3012
04d9db02Thanks @radglob! - AddstabIndexandrole="region"toPageLayout.Panewhen overflow is detected (scrollHeight > clientHeight). Also requires eitheraria-labelledbyoraria-labelwhen overflow is detected, and throws an error if neither is defined.
Patch Changes
-
#3056
7e4f7714Thanks @langermank! - Remove incorrect focus styles on ActionList items -
#3061
b71cb1fbThanks @broccolinisoup! - Stop renderingactiveClassNamewhen there is notoprop is passed for react-router (TabNav, SubNav, BreadCrumb, UnderlineNav v1) -
#3041
e5f13300Thanks @simurai! - Use open/closed colors forStateLabel