Releases: primer/react
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
v35.22.0
Permalink to documentation
Minor Changes
- 
#2901 992f1acdThanks @joshblack! - Add babel-plugin-dev-expression to transform warning calls in package bundle
- 
#3027 3153c810Thanks @talum! - ExportuseResizeObserverhook
Patch Changes
- 
#2996 baa63958Thanks @mperrotti! - Implements column width features for the DataTable
- 
#3036 51a2cc94Thanks @colebemis! -PageLayoutandSplitPageLayoutare now SSR-compatible.Warning: In this new implementation, PageLayout.HeaderandPageLayout.Footermust be direct children ofPageLayout. The same applies toSplitPageLayout
- 
#3029 bb9f1561Thanks @mperrotti! - Adds new a11y improvements to Pagination.
- 
#2993 6aa9205eThanks @mperrotti! - Makes StateLabel's 'status' prop required
- 
#3009 cc4e2bc5Thanks @iansan5653! - Recalculate autocomplete suggestions if the input data changes while the menu is open
- 
#3010 022d449cThanks @broccolinisoup! - SegmentedControl: Resolve axe-violation by adding a discernible text to the icon button and removing the tooltip until it is marked as accessible
v35.21.0
Permalink to documentation
Minor Changes
- 
#2953 91688a41Thanks @joshblack! - Add Table.Divider and Table.Actions components for Table
- 
#2985 38ac17a6Thanks @broccolinisoup! - Hidden: rename prop 'on' -> 'when'
- 
#2951 eff43b07Thanks @joshblack! - Add DataTable, Table to drafts entrypoint
Patch Changes
- 
#2929 ee4b76f8Thanks @broccolinisoup! - Button: Fixes the style override issue when size is explicitly specified as medium
- 
#2933 81ed5403Thanks @langermank! - Bug fix: ButtonGroup hover state causes buttons to shift horizontally
- 
#2948 0215c969Thanks @colebemis! - Include story source code ingenerated/components.json
- 
#2905 6bf9e677Thanks @broccolinisoup! - PageHeader: Make default heading levelh2
- 
#2973 3a25597aThanks @colebemis! - Upgrade @primer/octicons-react dependency to^18.0.0
- 
#2910 0c701920Thanks @iansan5653! - Addisolation:isolatetoButtonGroupcontainer
- 
#2843 533f0b4aThanks @mperrotti! - Updates the ToggleSwitch styles to be more minimal and less dimensional
- 
#2702 0121c0f5Thanks @mperrotti! - Pagination design updates:- Updates spacing inside of the buttons to match the "medium" control metrics: https://primer.style/primitives/spacing#medium
- Updates hover style to align with ActionList items and other elements that may appear on any background color
- Updates ARIA markup to improve assistive technology experience
 
- 
#2974 6a795da6Thanks @iansan5653! - Fix ellipsis truncation inToken
- 
#2925 6f50b156Thanks @langermank! - Decreaseinvisiblebutton icon CSS specifity
- 
#2922 7140ac8fThanks @green6erry! - Updated PageLayout.Pane to conditionally include id prop
- 
#2702 0121c0f5Thanks @mperrotti! - Updates the visual design of the Pagination component to align with the latest design token usage patterns. Also improves ARIA markup to hide the "..." from assistive technologies.
- 
#2954 041dd150Thanks @iansan5653! - AllowReact.ReactNodeasTokencontent
- 
#3004 45107bc5Thanks @iansan5653! - Add support for custom emojis and a declarative "loading" state inMarkdownEditorsuggestions
v35.20.0
Permalink to documentation
Minor Changes
- 
5967b0a9Thanks @broccolinisoup! - Issue a deprecation notice for UnderlineNav v1
- 
#2815 74df59c4Thanks @mperrotti! - Addresses feedback from the accessibility team about our SegmentedControl component. These changes include an update to ActionMenu that allows u to specify the ID of the DOM node that labels the menu.
- 
#2768 5055b91bThanks @green6erry! - Confine Heading as prop to header element types
- 
#2903 13651ba1Thanks @colebemis! - TreeView promoted to beta status. You can now import it from the main bundle instead of/drafts:- import {TreeView} from '@primer/react/drafts' + import {TreeView} from '@primer/react' 
Patch Changes
- 
#2792 03b470b0Thanks @broccolinisoup! - - Add a block prop for full width- Add alignContent prop to align content to center or start for full width buttons
- Use control sizing CSS variable values (not using CSS vars just yet)
- Use height over padding for more control over sizing
- Adjust invisible button variant to match new design using ActionList colors
 
- 
#2868 03ebf41bThanks @colebemis! - TreeView: Reliably move focus from loading item to first asynchronously loaded item
- 
#2845 c31314c8Thanks @colebemis! - TreeView: When moving focus to TreeView, the current item will be focused by default.
- 
#2770 3bf1b0e3Thanks @broccolinisoup! - UnderlineNav2: Handle the case when container is too small to render any items
- 
d8f18435Thanks @iansan5653! - Addaria-modalattribute toDialog(V2) element
- 
3127e104Thanks @jbrown1618! - Upgrade primer/behaviors from 1.3.1 to 1.3.2
- 
2a00aab6Thanks @colebemis! - TreeView: Set aria-selected=true on focused item
- 
ca7398dfThanks @broccolinisoup! - CounterLabel: Do not parse children to string for visually hidden content
- 
#2900 3768cd7dThanks @broccolinisoup! - PageHeader: A11y eng review remediations
- 
8bce9740Thanks @broccolinisoup! - UnderlineNav2: Update total height of the navigation to48px
- 
196a7929Thanks @iansan5653! - FixuseDynamicTextareaHeightnot taking into account top padding oftextareaAlso makes the hook accept a RefObjectinstead of an element instance
- 
#2845 c31314c8Thanks @colebemis! - TabNav: Re-focusing a TabNav will focus the selected tab
v35.19.0
Permalink to documentation
Minor Changes
- 
#2807 81447a10Thanks @joshblack! - Add defaulttype="button"forButton. This removes the implicittype="submit"for a<button>and requires an explicittypeto change.
- 
#2789 44f66cb9Thanks @green6erry! - warn user if linkasprop is not or
Patch Changes
- #2818 7403a47fThanks @iansan5653! - Improve initialuseComboboxinitialization process to avoid race conditions
v35.18.0
Permalink to documentation
Minor Changes
Patch Changes
- 
#2732 3f70b2e6Thanks @renbaoshuo! - Prevent automatic batching updates in ThemeProvider to ensure client use right colorMode
- 
#2701 73dbefdbThanks @mperrotti! - Updates visual design of the Checkbox and Radio component to match the new direction defined by design.
- 
#2729 4dcf658cThanks @broccolinisoup! - PageHeader: Add visual ordering for layout enforcement
- 
#2710 ac0abd17Thanks @green6erry! - TreeView: aria status description is now accurate
- 
#2729 4dcf658cThanks @broccolinisoup! - Hidden: Refactor Hidden component to usegetBreakpointsDeclarationsutil function to reduce layout shifts
- 
#2759 693ce68cThanks @manuelpuyol! - Update defaultProps to be JS function defaults
v35.17.0
Permalink to documentation
Minor Changes
- 
#2677 d356be83Thanks @mattcosta7! - update types for button extensions
- 
#2661 5dd4bb1fThanks @joshblack! - Update to React.useId() when using React 18
- 
#2694 5a659295Thanks @broccolinisoup! - PageHeader: export PageHeader in the draft bundle
- 
#2662 1266b108Thanks @broccolinisoup! - PageHeader: Add a util function that returns breakpoint styles with the given CSS property and values
- 
#2593 d8875861Thanks @radglob! - Make resizable SplitPageLayout.Pane keyboard accessible.
Patch Changes
- 
#2765 154db4b9Thanks @iansan5653! - Remove shadow fromMarkdownEditortextarea
- 
#2685 3a8bb765Thanks @radglob! - Setting overflow: auto without a media query to fix resizable pane bug.
- 
#2718 9cb01190Thanks @marywhite! - Prevent default when clicking on MarkdownViewer links with openLinksInNewTab
- 
#2656 db0db6ecThanks @joshblack! - Update useDetailsreftype to HTMLDetailsElement
- 
#2762 74016a7cThanks @mattcosta7! - Token: Update component type to be PolymorphicForwardRefComponent.this avoids types being swallowed by forwardRef (which isn't polymorphic) 
- 
#2658 20e18c07Thanks @joshblack! - Update TypeScript types for deprecated ButtonClose to support React 18
- 
#2755 dd1e5ce7Thanks @dwilsonactual! - UpdateisScrollableutility to only rungetComputedStyleon scrollable content.
- 
#2660 1fb6ee9fThanks @joshblack! - Update npm package to includedeprecated/package.jsonfor TypeScript type resolution
- 
#2721 386561a3Thanks @simurai! - AddNoto Sansto fontStack
- 
#2756 5826b94dThanks @broccolinisoup! - Button: Revert new enhancement due to introducing major styling changes
- 
#2760 24fb9a77Thanks @broccolinisoup! - Token: OmitonResizeandonResizeCapturemethods that are included in the method expansion and causes type issues in React 18
- 
#2757 b55d8232Thanks @jdrush89! - Making onClick of ActionList.LinkItem functional
- 
#2697 5efab195Thanks @keithamus! - Update@github/relative-time-elementpackage dependency to a range
- 
#2750 dcb51c64Thanks @jdrush89! - Show tooltips on focus-within
- 
#2661 5dd4bb1fThanks @joshblack! - Update types for components to work for React 17 and 18
v35.16.0
Permalink to documentation
Minor Changes
- 
#2265 2ef9ad43Thanks @pksjce! - PageHeader: Draft implementation
- 
#2484 5eb6939aThanks @keithamus! - Add RelativeTime component
- 
#2657 cc909dc4Thanks @green6erry! - Assign aria-keyshorcuts and role properties to the correct element in LinkItem.tsx
- 
#2693 f8939f33Thanks @broccolinisoup! - Relative Time Element : Publish v4.1.2 in NPM and GPR
Patch Changes
- 
#2659 84d29977Thanks @kendallgassner! - Add a console warning if the Button and IconButton as property is used incorrectly
- 
#2666 d995bb84Thanks @mattcosta7! - make check for semantic as a compile time effect
- 
#2639 fd9ab396Thanks @iansan5653! - FixMarkdownEditorpreview overflowing its container
- 
#2689 7fc9acd7Thanks @mperrotti! - Removes useless z-index from the remove button in tokens
- 
#2635 95ba0790Thanks @joshblack! - Update Radio to only use disabled when provided and no longer set aria-disabled
- 
#2640 a8f2289dThanks @jdrush89! - TreeView: Add containIntrinsicSize prop and typeahead performance improvement
- 
#2692 5352bccbThanks @jdrush89! - Trigger onSelect when TreeView items are middle clicked
v35.15.1
v35.15.0
Minor Changes
- 
#2591 764bf6b9Thanks @iansan5653! - AdduseRefObjectAsForwardedRefto public hooks
- 
#2618 04683150Thanks @broccolinisoup! - UnderlineNav2: expose aria-current in the API to enable it to be used as the selected status of UnderlineNav.Item
Patch Changes
- 
#2592 d9c7290aThanks @radglob! - DeleteTreeView.LinkItem. UseTreeView.Itemand call a navigation function inside theonSelectcallback instead:- <TreeView.LinkItem href="#">... + <TreeView.Item onSelect={() => navigate('#')}>... 
- 
#2545 eb30fdadThanks @joshblack! - Update setTimeout in AutocompleteInput to cancel when unmounting
- 
#2615 a7455696Thanks @Swiftwork! - Fix Windows checkout by removing unsupported colon in filename
- 
#2603 22059e9fThanks @broccolinisoup! - UnderlineNav2: Render non-breaking space properly for screen readers
- 
#2563 3085fde0Thanks @josepmartins! - Remove deprecated component instances in stories
- 
#2569 0e7a6388Thanks @nicolleromero! - Present MarkdownEditor from resizing when rendered in a condensed state
- 
#2604 7e9e3678Thanks @broccolinisoup! - Accessibility improvements on CounterLabel for better screen reader announcing