Skip to content

Build: Update Ariakit React to 0.4.43 - #86887

Merged
ciampo merged 3 commits into
trunkfrom
codex/deps-ariakit-react-0.4.43
Nov 16, 2026
Merged

ciampo merged 3 commits into
trunkfrom
codex/deps-ariakit-react-0.4.43

Conversation

@ciampo

@ciampo ciampo commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

What?

Update both direct @ariakit/react declarations from ^0.4.42 to ^0.4.43, moving the resolved runtime from 0.4.42 to 0.4.43.

Why?

Take fixes for keyboard navigation, controlled radio selection, and popup focus and pointer behavior.

How?

Update Components and DataViews manifests and regenerate the root lockfile. Required Ariakit internals move with the runtime: react-components 0.7.1 → 0.7.2, components 0.1.15 → 0.1.16, react-utils 0.2.8 → 0.2.9, utils 0.2.2 → 0.2.3, store 0.1.11 → 0.1.12, and react-store 0.1.13 → 0.1.14. No other direct dependency is updated; there is no direct Ariakit test-package declaration to change.

Complete release span: @ariakit/react 0.4.43.

Notable upstream changes

  • Composite navigation respects reordered items and text-field caret position. Components exposes composite wrappers; DataViews' search widget uses an Ariakit composite. Existing composite and DataViews filter browser coverage passes.
  • Radio selection recovers after controlled state resets. ToggleGroupControl uses Ariakit Radio; its browser tests pass without a wrapper migration.
  • Disclosure anchors, hovercards, tooltip exit transitions, and portal tab order receive fixes. Components Menu and Tooltip use these primitives. Their existing browser tests pass, including menu keyboard navigation. Same-origin iframe tab-order fixes were reviewed upstream but were not separately reproduced locally.
  • Arrow padding now follows rounded corners. Neither direct consumer renders an Ariakit arrow or sets arrowPadding, so no authored arrow needs adjustment. The new RadioGroupLabel and tooltip data-instant styling hook are not adopted.
  • Overlapping form callbacks must settle before pending state clears. Neither direct consumer imports Ariakit's form-store APIs, so that requirement needs no migration. The Next.js prerendering fix does not require a Gutenberg change.

This is a pre-1.0 runtime dependency. Compatibility was checked through imports, affected wrappers, unchanged React 17/18/19 peer ranges, strict installation, and existing tests; it is not inferred from the patch number alone. No Gutenberg API or style changes are included.

Testing Instructions

  1. Open Storybook's Components → Menu examples. Open and dismiss a menu, select an item, and enter and leave a submenu. The popup should stay anchored and actions should work once.
  2. Open Components → Tooltip and move between tooltip triggers. Tooltips should appear and dismiss without sticking open.
  3. Open Components → ToggleGroupControl. Change selection and reset the controlled value; selecting an option again should work.
  4. In the Site Editor's Pages screen, add and search a filter. Choose a result and confirm the filter applies.

Testing Instructions for Keyboard

Use Tab to reach a menu trigger, Enter to open it, arrow keys to navigate, and Escape to close it. Focus should return to the trigger. Navigate Tabs and ToggleGroupControl with arrow keys and verify the active panel or selected option follows focus. Tab through a tooltip trigger and confirm its tooltip dismisses when focus moves away.

Automated verification

Strict npm install, dependency lint, and lockfile lint passed. Existing jsdom coverage passed with 46 tests in four files. Chromium coverage passed with 206 tests in nine files across menus, tabs, tooltips, composite wrappers, toggle groups, and DataViews filters. Full build, typecheck, and published-dependency audit passed, with zero published-dependency findings across 129 packages. A second strict install passed. The security audit matches the base at 88 advisories, with no new named advisory.

The reviewer interactions above have not been performed by a human.

Use of AI Tools

Codex inspected upstream releases and consumers, authored this dependency update and description, and ran automated verification. No human review is claimed.

@ciampo ciampo added the [Type] Code Quality Issues or PRs that relate to code quality label Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground Preview in Storybook

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: aduth <aduth@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

📦 Bundle size

Size Change: +2 kB (+0.02%)

Total Size: 8.66 MB

📦 View Changed
Filename Size Change
build/scripts/block-editor/index.min.js 555 kB +251 B (+0.05%)
build/scripts/components/index.min.js 338 kB +1.07 kB (+0.32%)
build/scripts/edit-site/index.min.js 382 kB +322 B (+0.08%)
build/scripts/editor/index.min.js 571 kB +160 B (+0.03%)
build/scripts/media-utils/index.min.js 238 kB +192 B (+0.08%)

ddf28b8 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric d53d263 trunk % Change
timeToFirstByte 55.5 ms +8.38% -3.24% 54.8 ms +5.2% -4.01% 1.28%
largestContentfulPaint 88 ms +4.55% -4.55% 84 ms +4.76% -4.76% 4.76%
lcpMinusTtfb 31.05 ms +16.1% -11.27% 28.25 ms +16.28% -4.6% 9.91%
wpBeforeTemplate 29.13 ms +8.03% -2.23% 28.65 ms +5.48% -1.88% 1.68%
wpTemplate 22 ms +2.5% -2.55% 22.13 ms +3.43% -6.19% -0.59%
wpTotal 51.63 ms +8.68% -2.77% 51.03 ms +5.6% -3.82% 1.18%
wpMemoryUsage 7.75 MB +0% -0% 7.71 MB +0% -0% 0.45%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric d53d263 trunk % Change
timeToFirstByte 47.6 ms +3.89% -3.05% 46.7 ms +7.71% -4.39% 1.93%
largestContentfulPaint 84 ms +2.38% -4.76% 80 ms +2.5% -0% 5%
lcpMinusTtfb 35.05 ms +7.7% -1.57% 34.85 ms +2.73% -5.88% 0.57%
wpBeforeTemplate 27.01 ms +7.55% -2.33% 26.41 ms +9.39% -1.89% 2.27%
wpTemplate 16.74 ms +4.36% -4.12% 16.63 ms +3.97% -4.21% 0.66%
wpTotal 44.45 ms +4.52% -2.99% 43.62 ms +7.93% -4.13% 1.9%
wpMemoryUsage 6.44 MB +0% -0% 6.40 MB +0% -0% 0.56%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric d53d263 trunk % Change
mediaProcessingJpeg 398.82 ms +0.41% -1.03% 396.7 ms +0.87% -0.44% 0.53%
mediaProcessingAvif 6176.22 ms +0.12% -0.18% 6139.71 ms +0.35% -0.08% 0.59%
mediaProcessingJpegToAvif 4240.85 ms +0.24% -0.07% 4230.73 ms +0.13% -0.08% 0.24%

media-upload

Metric d53d263 trunk % Change
jpegUploadProcessing 1987.53 ms +2.23% -23.5% 1503.95 ms +31.25% -0.59% 32.15%
pngUploadProcessing 274.76 ms +1.97% -0.74% 270.19 ms +3.96% -0.85% 1.69%
largeJpegUploadProcessing 1505.68 ms +30.39% -0.42% 1968.19 ms +0.77% -24.38% -23.5%
multipleImageUploadProcessing 2036.08 ms +1.97% -0.22% 2065.03 ms +0.55% -0.14% -1.4%

post-editor

Metric d53d263 trunk % Change
serverResponse 293.92 ms +2.16% -8.43% 311.02 ms +3.3% -9.09% -5.5%
firstPaint 307.91 ms +26.25% -8.29% 310.28 ms +9.27% -4.33% -0.76%
domContentLoaded 605.99 ms +7.89% -5.24% 612.55 ms +4.19% -0.6% -1.07%
loaded 606.91 ms +7.88% -5.26% 613.49 ms +4.16% -0.59% -1.07%
firstContentfulPaint 344.18 ms +12.95% -7.48% 345.35 ms +2.2% -1.33% -0.34%
firstBlock 1568.51 ms +3.7% -1.87% 1639.76 ms +1.44% -2.06% -4.35%
type 16.13 ms +2.73% -14.63% 16.8 ms +3.1% -12.92% -3.99%
typeWithoutInspector 15.1 ms +3.31% -7.88% 16.53 ms +7.74% -10.22% -8.65%
typeWithTopToolbar 20.03 ms +4.44% -3.3% 21.81 ms +3.76% -8.02% -8.16%
typeContainer 7.45 ms +9.8% -8.72% 7.41 ms +9.85% -3.91% 0.54%
focus 91.7 ms +3.36% -6.49% 93.67 ms +2.99% -4.2% -2.1%
firstFocus 189.25 ms +0% -0% 197.84 ms +0% -0% -4.34%
selectAll 273.08 ms +5.32% -2.65% 270.38 ms +4.16% -0.84% 1%
undo 24.5 ms +6.53% -4.78% 25.99 ms +9.62% -4.39% -5.73%
listViewOpen 61.32 ms +5.02% -11.19% 58.62 ms +7.47% -6.99% 4.61%
inserterOpen 33.83 ms +3.07% -5.08% 32.67 ms +2.69% -4.47% 3.55%
inserterHover 10.7 ms +6.45% -10.09% 8.65 ms +7.86% -5.78% 23.7%
inserterSearch 7.89 ms +4.06% -3.04% 7.66 ms +7.05% -1.31% 3%
loadPatterns 539.52 ms +7.46% -5.2% 483.99 ms +6.64% -0.83% 11.47%
wpTotal 285.77 ms +2.37% -8.55% 302.99 ms +3.33% -9.19% -5.68%
wpMemoryUsage 14.81 MB +0% -0% 14.77 MB +0% -0% 0.25%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric d53d263 trunk % Change
serverResponse 372.17 ms +8.4% -2.24% 402.95 ms +0.65% -7.17% -7.64%
firstPaint 393.16 ms +12.67% -9.92% 379.11 ms +16% -5.96% 3.71%
domContentLoaded 784.52 ms +3.13% -1.45% 796.96 ms +1.28% -0.84% -1.56%
loaded 785.58 ms +3.1% -1.46% 797.89 ms +1.27% -0.79% -1.54%
firstContentfulPaint 441.07 ms +1.68% -1.88% 446.47 ms +1% -1.5% -1.21%
firstBlock 2375.96 ms +5.05% -2.43% 2375.95 ms +1.08% -0.36% 0%
type 16.9 ms +2.84% -8.99% 16.34 ms +13.65% -6.24% 3.43%
navigate 119.82 ms +5.62% -9.04% 112.79 ms +1.84% -3.87% 6.23%
loadPatterns 1361.3 ms +5.49% -5.26% 1380.15 ms +10.64% -11.18% -1.37%
loadPages 920.05 ms +0.54% -0.77% 926.06 ms +0.9% -1.54% -0.65%
wpTotal 362.79 ms +8.69% -2.19% 393.86 ms +0.65% -7.37% -7.89%
wpMemoryUsage 12.82 MB +0% -0% 12.79 MB +0% -0% 0.25%
wpDbQueries 45 +0% -0% 45 +0% -0% 0%

ddf28b8 Run

🏁 Flaky tests

Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

allows blocks to be added on mobile viewports in /test/e2e/specs/widgets/editing-widgets.spec.js, passed after 1 failed attempt.

should give the image its context menu while selected @WebKit @Firefox in /test/e2e/specs/editor/blocks/image.spec.js, passed after 1 failed attempt.
Test timeout of 100000ms exceeded.
should reset a named font size using input field in /test/e2e/specs/editor/various/font-size-picker.spec.js, passed after 1 failed attempt.
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 2
+ Received  + 2

- <!-- wp:paragraph {"fontSize":"small"} -->
+ <!-- wp:paragraph {"fontSize":"tiny"} -->
- <p class="has-small-font-size">Paragraph with font size reset using input field</p>
+ <p class="has-tiny-font-size">Paragraph with font size reset using input field</p>
  <!-- /wp:paragraph -->

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/font-size-picker.spec.js:216:6

ddf28b8 Run

@github-actions github-actions Bot added [Package] Components /packages/components [Package] DataViews /packages/dataviews labels Nov 16, 2026
@ciampo
ciampo marked this pull request as ready for review November 16, 2026 11:51
@ciampo
ciampo requested review from a team, gigitux, ntsekouras and oandregal as code owners November 16, 2026 11:51
@ciampo ciampo self-assigned this Nov 16, 2026

@aduth aduth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

I was able to validate an actual bug fixed by this upgrade:

  1. Start at "Layout List" https://wordpress.github.io/gutenberg/?path=/story/dataviews-dataviews--layout-list
  2. Click settings gear icon
  3. Click order ascending (up arrow)
  4. Click Items per page: 50
  5. Click order descending (down arrow)
  6. Dismiss menu
  7. Click first item
  8. Press ArrowDown

On trunk: First item stays selected, screen scrolls down
On this branch: Second item is selected

@ciampo
ciampo enabled auto-merge (squash) November 16, 2026 17:29
@ciampo
ciampo merged commit 2b14c4b into trunk Nov 16, 2026
94 checks passed
@ciampo
ciampo deleted the codex/deps-ariakit-react-0.4.43 branch November 16, 2026 17:38
@github-actions github-actions Bot added this to the Gutenberg 24.5 milestone Nov 16, 2026
Vedant-Gandhi pushed a commit to Vedant-Gandhi/gutenberg that referenced this pull request Nov 30, 2026
* Build: Update Ariakit React to 0.4.43

* Build: Link Ariakit changelog entries to PR

---

Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: aduth <aduth@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Components /packages/components [Package] DataViews /packages/dataviews [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants