Releases: primer/react
@primer/styled-react@1.0.8
Patch Changes
- #7800
ce88bdfThanks @francinelucca! - chore: forward @primer/react theming from @primer/styled-react under feature flag
@primer/react@38.23.0
Minor Changes
- #7817
51a7a28Thanks @francinelucca! - - ActionList: ExpandselectableRolesandlistRoleTypesto includetreeitemandtree.- Export
ActionListContainerContextasActionList.ContainerContext. - Export
useRovingTabIndexfrom the public API with additional configuration options (preventScrollanddependencies).
- Export
Patch Changes
-
#7805
8f8844eThanks @TylerJDev! - AnchoredOverlay: Disables CSS anchor positioning ifportalContainerNameis true. (behindprimer_react_css_anchor_positioningfeature flag) -
#7800
ce88bdfThanks @francinelucca! - chore: addprimer_react_styled_react_use_primer_theme_providersfeature flag to DefaultFeatureFlags -
#7802
872bf46Thanks @TylerJDev! - AnchoredOverlay: Ensure overlay fits within viewport by calculating viewport height + width (behindprimer_react_css_anchor_positioningfeature flag)
@primer/react@38.22.0
Minor Changes
- #7755
0e868f9Thanks @francinelucca! - feat: add ActionList, SelectPanel primitives exports and new FilteredActionList.Input components
Patch Changes
-
#7797
3e05935Thanks @liuliu-dev! - Breadcrumbs overflow menu no longer appears when there are only two crumb items. -
#7511
eb73deeThanks @RSoeborg! - Fix NavList parent item flicker during static-to-interactive transitions when navigating between current sub-items in a SubNav. -
#7619
68aaf61Thanks @hectahertz! - Memoize ActionMenu context values to prevent unnecessary re-renders of menu items -
#7708
d0fa0ffThanks @hectahertz! - perf(css): audit :has() selectors and add stylelint guard for Safari -
#7775
4b7e4caThanks @TylerJDev! - AnchoredOverlay: Ensure styles persist on anchors even when re-mounted (behind feature flag) -
#7780
8330aadThanks @francinelucca! - fix: Checkbox indeterminate state now persists on click if the state didn't change
@primer/react@38.21.1
@primer/react@38.21.0
Minor Changes
-
#7760
b2e0efdThanks @siddharthkp! - Deprecate theuseResponsiveValuehook. -
#7724
d813099Thanks @francinelucca! - Add stabledata-componentselectors to multiple components following ADR-023:- ActionBar
- ActionList and friends
- Button
- FilteredActionList and friends
- Link
- LinkButton
- Pagination
- SelectPanel and friends
- Table and friends
- TextInput
- TextInputWithTokens
- TooltipV2
This enables consumers to query and test components using stable selectors like
[data-component="Table.Row"]. -
#7766
b3f06f1Thanks @TylerJDev! - AnchoredOverlay: (Behind feature flag) Make popover API usage opt-in -
#7763
b288d6eThanks @liuliu-dev! - Add borderRadius prop to Card component.
Patch Changes
-
#7714
e974d9fThanks @hectahertz! - perf(ActionList): replace :has() selector with JS-computed attribute -
#7754
9e3fe4bThanks @liuliu-dev! - Breadcrumbs: On narrow viewports, only show the current page breadcrumb and the overflow menu whenoverflow="menu"is set. -
#7757
ed82a1eThanks @liuliu-dev! - SelectPanel: Lock body scroll when modal variant is on. -
#7734
421ebf0Thanks @llastflowers! - add data-component attributes for Avatar, AvatarStack, Banner, & BaseStyles
@primer/styled-react@1.0.6
Patch Changes
-
#7738
f5f2869Thanks @francinelucca! - ActionMenu, Table: Fix component mutation issue whereObject.assignwas modifying original@primer/reactcomponents. Now uses wrapper components to avoid side effects. -
#7728
6eb03b5Thanks @jonrohan! - Remove Overlay, CounterLabel, and ActionMenu from styled-react package -
#7743
8550be3Thanks @jonrohan! - Remove Token and Tooltip from@primer/styled-react -
#7726
2edb05aThanks @copilot-swe-agent! - Remove PageHeader from @primer/styled-react
@primer/react@38.20.0
Minor Changes
-
#7723
ec6c88fThanks @liuliu-dev! - Add Card component with subcomponents: Card.Icon, Card.Image, Card.Heading, Card.Description, Card.Menu, and Card.Metadata -
#7725
d7b9313Thanks @TylerJDev! - AnchoredOverlay: Remove polyfill for CSS Anchor Positioning, use primer/behaviors as fallback. Ensure overlays take available space. -
#7752
d7380a7Thanks @liuliu-dev! - Breadcrumbs: Graduateprimer_react_breadcrumbs_overflow_menufeature flag, making the overflow menu behavior always-on. -
#7733
b9211dbThanks @francinelucca! - Overlay: Graduateprimer_react_overlay_max_height_clamp_to_viewportfeature flagThe max-height of overlays is now clamped to the viewport height by default using
min(size, 100dvh). This prevents overlays from extending beyond the viewport on smaller screens. -
#7698
5c34ab4Thanks @hectahertz! - Timeline: addvariantprop toTimeline.Badgefor built-in color schemes (accent,success,attention,severe,danger,done,open,closed,sponsors)
Patch Changes
-
#7738
f5f2869Thanks @francinelucca! - ActionMenu, Table: Fix component mutation issue whereObject.assignwas modifying original@primer/reactcomponents. Now uses wrapper components to avoid side effects. -
#7747
b7dfb78Thanks @copilot-swe-agent! - Fix IssueLabelToken text contrast in light theme by updating the lightness-switch formula to use a division-based approach that properly produces a binary switch value for selecting black vs white text -
#7739
efa7af8Thanks @copilot-swe-agent! - Spinner: Remove feature flagprimer_react_spinner_synchronize_animations, treat it as always enabled. -
#7746
30206c4Thanks @jonrohan! - Update TokenTextContainerline-heightto use primer primitives CSS variablevar(--base-text-lineHeight-normal)
@primer/mcp@0.3.2
@primer/react@38.19.0
Minor Changes
-
#7677
c1a81b1Thanks @TylerJDev! - AnchoredOverlay: Add Popover API to AnchoredOverlay (behindprimer_react_css_anchor_positioningfeature flag) -
#7697
990ce7bThanks @hectahertz! - Stack: Addtight(4px) andcozy(12px) spacing values togapandpaddingprops. AddpaddingBlockandpaddingInlineprops for directional padding control.
Patch Changes
-
#7652
5d19e2bThanks @owenniblock! - useAnchoredPosition: recalculate overlay position when any scrollable ancestor (or the window) is scrolled. -
#7707
6431bfeThanks @liuliu-dev! - Fix anchor-name not being set on the anchor element when SelectPanel is opened in Copilot code agent. -
#7633
a107d39Thanks @copilot-swe-agent! - Graduateprimer_react_css_has_selector_perffeature flag: the CSS:has()performance optimization (body[data-dialog-scroll-disabled]) is now the default behavior for Dialog scroll disabling -
#7695
780fc3dThanks @mattcosta7! - perf(ThemeProvider): Reduce unnecessary renders and effect cascades- Replace
useState+useEffectSSR hydration handoff withuseSyncExternalStore— eliminates post-hydration re-render - Replace
useState+useEffectinuseSystemColorModewithuseSyncExternalStore— eliminates effect gap and stale-then-update flicker - Cache
getServerHandoffDOM read + JSON.parse per ID (runs once, not on every call) - Memoize context value object to prevent unnecessary re-renders of all consumers
- Replace
-
#7706
fd8910aThanks @liuliu-dev! - ActionList.Item: fix inline descriptions being referenced viaaria-labelledbyinstead ofaria-describedby
@primer/react@38.18.0
Minor Changes
-
#7700
91bf343Thanks @francinelucca! - ActionMenu: Graduateprimer_react_action_menu_display_in_viewport_inside_dialogfeature flag. ActionMenu now automatically usesdisplayInViewportwhen rendered inside a Dialog, without requiring the feature flag. -
#7699
1505d9bThanks @francinelucca! - SelectPanel: AdddisplayInViewportprop -
#7662
39c8cf3Thanks @HiroAgustin! - Timeline: UpdateclipSidebarprop to accept'start','end', or'both'in addition toboolean. Use'start'to only clip the top,'end'to only clip the bottom, or'both'/trueto clip both ends. -
#7686
6cd13c0Thanks @JelloBagel! - StateLabel: Add new type:archived
Patch Changes
-
#7690
b492cc8Thanks @HiroAgustin! - fix(Button): Apply inline-flex display to loading wrapper for link variant buttons -
#7696
1acb7d3Thanks @francinelucca! - Fix item dividers not visible in SelectPanel and FilteredActionList whenshowItemDividersis enabled, caused bycontent-visibility: autoclipping the absolutely-positioned divider pseudo-elements. -
#7683
f05fcacThanks @liuliu-dev! - Dialog: dynamically switch footer button layout based on available height. -
#7676
35ca056Thanks @HiroAgustin! - Remove link underline effect on hover for both Link (inline) and Button with variant link (no visuals) -
#7631
0ecaf6fThanks @mattcosta7! - Add test to validate that themutedprop is not leaked as a bare DOM attribute onLink