Repository navigation
Navigation: Migrate overlay selection to UI SelectControl - #86619
Conversation
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the ⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome 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. Actions are reachable via RIGHT/LEFT arrow keys in
|

See #80412.
What?
Migrate Navigation's Overlay template selector to
SelectControlfrom@wordpress/ui.Why?
Continue the select-control migration in the Navigation block's Overlay settings.
How?
Use item objects and a non-empty serialized value for the Default choice. Keep the stored overlay slug, async options, missing-overlay warning, disabled state, label, and help text.
Testing Instructions
overlayattribute is cleared.overlayattribute to a deleted overlay slug. Confirm the missing choice and warning appear, then use Reset to default overlay.Testing Instructions for Keyboard
Screenshots or screencast
Recorded in Chrome with Twenty Twenty-Three, the same two overlay choices, a 1280 × 800 viewport, and a 1282 × 926 browser-window recording area. No audio or added visual overlays.
Before. Shows the native trigger idle, hovered, and keyboard focused, then the popup opened from the keyboard. Native item hover and arrow-key movement could not be automated in the macOS popup.
navigation-before.mp4
After. Shows the closed trigger idle, hovered, and keyboard focused, then the open popup with hovered and keyboard-focused items, followed by Escape dismissal and focus return.
navigation-after.mp4
Screen reader smoke testing remains manual.
Use of AI Tools
Codex implemented the migration, adapted and extended the tests, checked the editor interactions, and prepared this PR and its recordings.