Update dependency @primer/react to v38#1595
Closed
dashql-renovate[bot] wants to merge 1 commit intomainfrom
Closed
Update dependency @primer/react to v38#1595dashql-renovate[bot] wants to merge 1 commit intomainfrom
dashql-renovate[bot] wants to merge 1 commit intomainfrom
Conversation
Owner
|
@copilot fix this |
Contributor
de6437e to
5927b59
Compare
866f9d3 to
36dd24b
Compare
36dd24b to
4fac6a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^37.31.0→^38.18.0Release Notes
primer/react (@primer/react)
v38.18.0Compare Source
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:archivedPatch 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 onLinkv38.17.0Compare Source
Minor Changes
#7658
259fdffThanks @hussam-i-am! - fix(polymorphic): Improve prop passthrough for ActionList.LinkItem and Breadcrumbs.Item#7672
77735f9Thanks @iansan5653! - - New: Exposes newuseMergedRefshook that can merge two refs into a single combined refuseRefObjectAsForwardedRef; see doc comment for migration instructionsuseProvidedRefOrCreate; see doc comment for migration instructions#7623
42847d1Thanks @copilot-swe-agent! -IconButton:keybindingHintnow acceptsstring[]in addition tostring. Multiple hints are rendered joined with "or".Patch Changes
#7510
8fa988bThanks @francinelucca! - chore: ensure max-height does not surpass viewport height in Overlay, ActionMenu under feature flag#7682
8aed331Thanks @llastflowers! - Update CheckboxOrRadioGroup.tsx to addrequiredannouncementv38.16.0Compare Source
Minor Changes
dceb79cThanks @TylerJDev! - AnchoredOverlay: Add CSS Anchor Positioning toAnchoredOverlay(under a feature flag)v38.15.1Compare Source
Patch Changes
#7625
2e8c707Thanks @liuliu-dev! - Banner: stack inline actions vertically on narrow viewports.#7554
f34f0c3Thanks @hectahertz! - perf(ActionList): memoize context values, menuItemProps, and aria attributes#7598
4b345dbThanks @hectahertz! - perf(Banner): replace:has(.BannerActions)with[data-has-actions]attribute selector#7597
adadd38Thanks @hectahertz! - perf(Button): replace:has(.Visual)with[data-no-visuals]attribute selector in link variant styling#7599
e6513c2Thanks @hectahertz! - perf(Dialog): replace:has(.Footer)with[data-has-footer]attribute selector for footer border detection#7620
ec0b789Thanks @hectahertz! - Use stable object reference for DialogContext value to prevent unnecessary re-renders#7621
235126aThanks @hectahertz! - Memoize SelectPanel overlayProps, focusTrapSettings, and preventBubbling to reduce allocations on re-renders#7600
0d7cc92Thanks @hectahertz! - perf(TextInput): skip redundant character counter updates#7654
a09a60cThanks @copilot-swe-agent! - SelectPanel: use100dvhandenv(safe-area-inset-bottom)in fullscreen-on-narrow mode to prevent content from being obscured by iOS Safari's browser chrome.#7545
17ec46fThanks @hectahertz! - perf(TreeView): defer scrollIntoView to coalesce reflows during rapid navigationv38.15.0Compare Source
Minor Changes
#7524
f7bdd1cThanks @francinelucca! - chore: always render ActionMenu in viewport when inside Dialog under feature flag#7594
1e54bdfThanks @copilot-swe-agent! - Addalignandstyleprops to Dialog componentPatch Changes
#7529
7e108feThanks @liuliu-dev! - Add keyboard-accessible tooltip for truncated ActionList.Description#7585
3dd2c78Thanks @iansan5653! - - Fixes a bug whereActionBarmenu items would be out of order if new items were mounted after the initial renderActionBar#7624
f6d4311Thanks @llastflowers! - Fix FormControl + SelectPanel accessible name to address SR issues#7617
79c855aThanks @llastflowers! - Push margin-top of TimelineBody +1px#7635
74762e2Thanks @iansan5653! - Fix(useRefObjectAsForwardedRef): fix ref failing to update when target changes#7550
9585669Thanks @hectahertz! - perf(Spinner): replace Web Animations API with CSS animation-delay sync#7618
17a103cThanks @liuliu-dev! - TextInputWithTokens: announce selected token values for screen readers.#7588
e649da3Thanks @lukasoppermann! - ToggleSwitch: Updated with a 1px space around the knob to work better with updated primitives.v38.14.0Compare Source
Minor Changes
0cfb938Thanks @hectahertz! - SelectPanel: Add built-in client-side list virtualization via a newvirtualizedprop. When enabled, only the visible items plus a small overscan buffer are rendered in the DOM, dramatically improving performance for large lists.Patch Changes
#7497
931740bThanks @hectahertz! - Remove render phase setStates on SelectPanel#7532
39a2151Thanks @hectahertz! - PageLayout: Eliminate forced reflow (~614ms) on mount by replacinggetComputedStylecall with a pure JS viewport width check for the--pane-max-width-diffCSS variable.#7555
64c2243Thanks @hectahertz! - perf(useSlots): short-circuit iteration and skip filled slots#7547
4943d67Thanks @hectahertz! - perf(useScrollFlash): defer scroll read/write to requestAnimationFrame to avoid forced reflow#7497
931740bThanks @hectahertz! - Improve SelectPanel performance#7551
2fbfc49Thanks @hectahertz! - perf(Text): remove unnecessary useRef and useImperativeHandle hooks#7571
59ab235Thanks @liuliu-dev! - AnchoredOverlay: changedoverflowfromhiddentoautoto prevent content clipping at small viewports.#7553
6225ba2Thanks @hectahertz! - perf(useRefObjectAsForwardedRef): add dependency array to useImperativeHandlev38.13.0Compare Source
Minor Changes
#7099
4720c2fThanks @copilot-swe-agent! - Banner: Usearia-labelledbyto reference the title for the landmark region instead of generic variant labels.#7521
12dda86Thanks @TylerJDev! - PageLayout: AddPageLayout.Sidebarsub-componentPatch Changes
#7537
4fd987cThanks @hectahertz! - perf(ActionList): enable React Compiler#7546
86d6897Thanks @hectahertz! - perf(Announce): skip getComputedStyle when there is no text content to announce#7568
aa46098Thanks @HiroAgustin! - Blankslate: Addtext-wrap: balanceto Heading and Description#7552
551ec63Thanks @hectahertz! - perf(Button): fix CounterLabel remount and remove conditional DEV hook#7504
d91e78eThanks @TylerJDev! - UnderlineNav: Addsoverflow: hiddenwhen the "More" button isn't present#7526
0c2358aThanks @hectahertz! - Addcontent-visibility: autoto ActionList items to improve rendering performance for large lists by allowing the browser to skip layout and paint for off-screen items.#7556
6dc1858Thanks @hectahertz! - perf(ActionList): replace:has([aria-disabled])child scan withdata-is-disabledattribute for faster style recalculation#7548
d4b32c3Thanks @hectahertz! - perf(useIsMacOS): replace useState+useEffect with useSyncExternalStore to eliminate unnecessary re-renderv38.12.0Compare Source
Minor Changes
#7348
3c160b2Thanks @mattcosta7! - AddcurrentWidthandonResizeEndprops to PageLayout.Pane for controlled resizable widthThe
PageLayout.Panecomponent now supports controlled width:onResizeEnd— callback fired when a resize operation ends (pointer release or keyboard key up). Replaces localStorage persistence. RequirescurrentWidth.currentWidth— sets the current displayed width in pixels (number | undefined). Passundefinedwhen the persisted value hasn't loaded yet. RequiresonResizeEnd.Both props must be provided together (enforced by TypeScript).
resizableremains a plainbooleanprop.These props are only meaningful when
resizable={true}— without it, no drag handle renders soonResizeEndnever fires.New export:
defaultPaneWidth— Record of preset width values:{small: 256, medium: 296, large: 320}Example usage:
Patch Changes
#7527
c87db98Thanks @llastflowers! - Update PageHeader story to have semantic headings#7535
d86c970Thanks @francinelucca! - fix: ActionBar overflow menu not closing on selectv38.11.0Compare Source
Minor Changes
2e563b4Thanks @francinelucca! - feat: implement displayInViewport for ActionMenu and AnchoredOverlayPatch Changes
#7501
81ab065Thanks @copilot-swe-agent! - Fix PageLayout horizontal overflow by adding width constraint to ContentWrapper#7483
fe999caThanks @francinelucca! - remove primer_react_overlay_overflow FF from the codebasev38.10.0Compare Source
Minor Changes
fe85519Thanks @koesie10! - DataTable: AddexternalSortingprop to disable client-side sortingv38.9.0Compare Source
Permalink to Storybook
Minor Changes
661d16fThanks @copilot-swe-agent! - StateLabel: Add alert status variants (alertOpened, alertFixed, alertClosed, alertDismissed) with corresponding shield icons for displaying security alert statesPatch Changes
#7471
df4bd30Thanks @llastflowers! - Add breakpoint to shrink gutter around dialog on very small screen heights#7468
731fb71Thanks @jonrohan! - feat(ActionList): Optimizes CSS selector performance in ActionList by replacing expensive universal selectors (*) and broad:has()queries with targeted class selectors.v38.8.0Compare Source
Minor Changes
#7455
a86c183Thanks @HiroAgustin! - Remove ConfirmationDialog custom renders to ensure visual parity with Dialog#7438
160c1c4Thanks @francinelucca! - feat: make Spinner's delay customizable#7436
9a4e46cThanks @TylerJDev! - FilteredActionList: Adds new propscrollBehaviorto allow customization of scroll behavior#7448
838859dThanks @francinelucca! - feat(SkeletonBox): add customizable delayPatch Changes
0fc4523Thanks @daantosaurus! - UnderlineNav.Item: Fix layout issues when children contain React elements by extracting only direct text content for thedata-contentattribute.v38.7.1Compare Source
Patch Changes
#7439
ceb4337Thanks @liuliu-dev! - Fix PageLayout whitespace gap on narrow viewports.#7364
d239382Thanks @francinelucca! - fix(Autocomplete.Overlay): prevent user-defined className from overriding default styles#7408
e3592d9Thanks @TylerJDev! - ActionMenu: Ensures that uncontrolled ActionMenu(s) retain tab-focus when fullscreen#7445
4072e44Thanks @mattcosta7! - Fixed a bug where scroll might jump when resizing by removing content-visibility from dragging elements in PageLayout.#7431
43d1d89Thanks @llastflowers! - Fix positioning of Autocomplete overlay menu when tokens are presentv38.7.0Compare Source
Minor Changes
d418509Thanks @lindseywild! - Adds character counts to TextInput and TextArea componentsPatch Changes
#7354
efbebdfThanks @llastflowers! - update SelectPanel Multi Select Modal story#7426
094be60Thanks @kelsey-myers! - Add focusPrependedElements prop to useFocusZone, FilteredActionList, and SelectPanel#7349
713d5a5Thanks @mattcosta7! - PageLayout: Optimize drag/resize performance with inline styles and new optimizationsRefactored:
.Pane[data-dragging='true']) instead of descendant selectors for CSS containment (O(1) vs O(n) selector matching)paneUtils.tsAdded:
content-visibility: autoduring drag/resize to skip off-screen content renderingThese changes improve style recalculation performance on large DOMs (100k+ nodes) by eliminating descendant selector traversal.
#7337
de970d6Thanks @mattcosta7! - perf(Autocomplete): Split context to reduce unnecessary re-rendersSplit AutocompleteContext into separate contexts for static values, setters, and dynamic state.
Components now subscribe only to the context slices they need, reducing re-renders.
#7325
cc7e10eThanks @mattcosta7! - perf(BaseStyles): Remove expensive :has([data-color-mode]) selectorsRemove
:has([data-color-mode])selectors that scanned the entire DOM on every style recalculation.Input color-scheme is already handled by global selectors in the codebase.
#7329
501a41fThanks @mattcosta7! - perf(Dialog): Add feature flag for CSS :has() selector performance optimizationprimer_react_css_has_selector_perffeature flag (default: false)body:has(.Dialog.DisableScroll)selectorbody[data-dialog-scroll-disabled]data attribute with ref counting#7342
a8b42b2Thanks @mattcosta7! - perf(hasInteractiveNodes): Optimize with combined selector and early attribute checksv38.6.2Compare Source
Patch Changes
#7334
ea4789fThanks @mattcosta7! - perf(TreeView): Cache tree items in typeahead for better INP#7347
72c7a7fThanks @owenniblock! - Only shows the aria-describedby id for loading when the component is in the loading statev38.6.1Compare Source
Patch Changes
5dcc87cThanks @mattcosta7! - reapplies PageLayout resizable enhancements without INP drop from expensive selectorsv38.6.0Compare Source
Minor Changes
#7157
eddd934Thanks @joshblack! - Add feature flag to control whether Spinner animations are synchronized#7277
4a1c9a5Thanks @kendallgassner! - Added callback prop onActiveDescendantChanged to FilteredActionListPatch Changes
335e9e8Thanks @llastflowers! - Revert PR #7275v38.5.0Compare Source
Minor Changes
#7240
79a6df1Thanks @TylerJDev! - FilteredActionList: Adds new propsetInitialFocuswhich will preventaria-activedescendantfrom being set until user action#7240
79a6df1Thanks @TylerJDev! - FilteredActionList: Add propdisableSelectOnHoverwhich will disable the ability where hovering over an item sets it as thearia-activedescendantvaluePatch Changes
#7259
c32b964Thanks @TylerJDev! - AvatarStack: Border was incorrectly applying to elements that were notAvatarchildren.#7259
c32b964Thanks @TylerJDev! - AvatarStack: The square prop was not applying to individualAvatarcomponents.#7275
822c3e7Thanks @mattcosta7! - Improve drag performance for PageLayout#7242
32faa80Thanks @pksjce! - useFocusTrap - Fix bug related to restoring focus on scrollingv38.4.0Compare Source
Minor Changes
#7258
8e66a2cThanks @kendallgassner! - Make MappedActionListItem a forwardRef component#7250
a193d30Thanks @siddharthkp! - Banner: Addflushprop for use within confined spaces, such as dialogs, tables, cards, or boxes where available space is limited.#7247
e1021e7Thanks @liuliu-dev! - Add leadingVisual to InlineMessage component.#7047
c07dd71Thanks @TylerJDev! - Remove the feature flag forprimer_react_segmented_control_tooltipand GA tooltip by default behavior.disabledis applied, the tooltip is still triggered.Patch Changes
#7244
d973c5aThanks @lukasoppermann! - "Update logic for how hex codes are applied"#7230
534ca11Thanks @mperrotti! - Replaces 'aria-live' usage and removes internal LiveRegion component#7267
1d8759aThanks @lukasoppermann! - Used correct tokens for disabled radio control#7241
181f12eThanks @francinelucca! - fix(LabelGroup): add role and aria-label to hidden items overlayv38.3.0Compare Source
Minor Changes
#7200
0a0c2a0Thanks @joshblack! - AddleadingVisualprop toUnderlineNav.Item#7197
9605a30Thanks @liuliu-dev! - Deprecateiconprop in favor ofleadingVisualand fix SecondaryAction styling in Banner.#7220
62fc3bbThanks @kendallgassner! - Expose props to allow virtualization in the SelectPanel#7177
feb7001Thanks @joshblack! - Add experimental TopicTag and TopicTag.Group componentsPatch Changes
#6987
cd5ab1bThanks @kerimmoresh! - docs: Fix Typos in comments#7239
2735220Thanks @lukasoppermann! - Center align header and description for BlankSlate#7223
f9fb9ebThanks @liuliu-dev! - ActionBar: Add padding to Divider when gap="none".#7134
585c5faThanks @hectahertz! - SegmentedControl: Remove useResponsiveValue hook from fullWidth and variant props to usegetResponsiveAttributesinstead.#7211
46a7ebeThanks @langermank! - AdjustActionList.Itemdanger variant CSS to support trailing count/keybinding hint#7246
1667225Thanks @pksjce! - chore - Fix type compatibility with react 19 refsv38.2.0Compare Source
Minor Changes
#7185
a05b1f9Thanks @lukasoppermann! - CounterLabel: Add variant prop and deprecate scheme prop#7165
f2ba02aThanks @liuliu-dev! - Fixes multiple styling issues in the Token component.#7194
32cdcfcThanks @francinelucca! - feat(NavList): add support for inline and block description#7143
25a5f99Thanks @langermank! - Adjust styling for button's that have nested keybinding hints#7196
70f5ffeThanks @TylerJDev! - FilteredActionList: RemoveusingRemoveActiveDescendantfeature flag, add private prop#7059
fd3d09eThanks @jonrohan! - feat(Spinner): Adds a delay prop to the Spinner component that delays rendering by 1000ms.#7149
5e6e04eThanks @lukasoppermann! - StateLabel: Add size prop and deprecate variant prop to align with APIs in other components.#7142
4f3be9cThanks @TylerJDev! - IconButton: Hide tooltip when a popup is open.Patch Changes
#7102
07c9e55Thanks @mperrotti! - Makes Button and LinkButton 'link' variant respect user underline preference#7189
424cbc5Thanks @liuliu-dev! - Prevent focus reset on date/time input clicks in Safari.#7180
f051a39Thanks @copilot-swe-agent! - Feature flags: Remove feature flagprimer_react_use_styled_react_theming#7198
b1a8accThanks @copilot-swe-agent! - Popover: add missing shadow#7188
9403294Thanks @liuliu-dev! - Remove unusedunderlineprop from LinkButtonProps.#7192
b78167aThanks @TylerJDev! - SelectPanel: RemoveusingRemoveActiveDescendantusage from componentv38.1.0Compare Source
Permalink to Storybook
Minor Changes
#7065
9090053Thanks @TylerJDev! - ActionBar: AddActionBar.Menusubcomponent#7056
6ff2797Thanks @adierkens! - Update active indicators for ActionList & FilteredActionList to follow content height#7063
247c66aThanks @francinelucca! - Feat: popover implement click outside#7123
01b16dbThanks @adierkens! - Adds an experimentalTabsutility component & associated hooks#7109
34e7108Thanks @adierkens! - Add support to ActionList for 'tablist' and 'tab' roles#7112
7160709Thanks @hectahertz! - PageHeader: Remove useResponsiveValue hook from TitleArea variant propMigrates PageHeader.TitleArea's
variantprop to usegetResponsiveAttributesfollowing ADR-018 for SSR-safe responsive values. This prevents layout shift during hydration when using responsive variants.Patch Changes
#7114
15a13c6Thanks @liuliu-dev! - ActionList: Fix trailing action button to take full height.#7124
a746a83Thanks @lukasoppermann! - Fixed Timeline.Break when followed by a condensed item and clip sidebar for condensed items.#7060
3468793Thanks @francinelucca! - @primer/react: chore(Dialog): allow direct children#7115
21cefb9Thanks @siddharthkp! - ActionBar: IconButton no longer adds it's owndata-testid#7061
e58e102Thanks @francinelucca! - PageLayout: update wrapper dimensions to match PageLayout's root element#7130
57ffdbcThanks @joshblack! - Update theAnchoredOverlaycomponent so that therefvalue is not overridden when spreading props#7097
12fad7aThanks @francinelucca! - chore: fix UnderlineWrapper html structure#7101
9382e52Thanks @hectahertz! - Remove use of useResponsiveValue hook - PageLayout#7128
4d0f08aThanks @liuliu-dev! - Link: Remove deprecated underline prop. (Not used in github-ui)v38.0.0Compare Source
Permalink to Storybook
Major Changes
#6944
446956dThanks @liuliu-dev! - Remove sx from deprecated ActionList component.#6965
f61238cThanks @francinelucca! - ChoreConfiguration
📅 Schedule: (in timezone Europe/Berlin)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.