Repository navigation
Conversation
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
The mobile expanded menu is collapsed with translateX(-110%), which moves it off-screen but leaves it focusable, so the first Tab from the veggie burger landed on a hidden menu link and a second Tab was needed to reach the sub nav.
Change: ExpandedNav.tsx sets visibility: hidden on the collapsed mobile menu (with a visibility transition so the close animation still plays) and visibility: visible when it is open. Desktop is unchanged because the menu is display: block there.
Test: the existing Playwright test 'should transfer focus to the sub nav when tabbing from the veggie burger without opening the menu' previously pressed Tab twice with a TODO describing this bug. It now presses Tab once and the TODO is removed.
Not run here: dependencies were not installed and CI was asked to run the tests, so the Playwright and Jest suites were not executed locally. Visual check of the open/close animation in a browser was also not done.
Tests not run here: pnpm playwright test playwright/tests/article.interactivity.e2e.spec.ts (dependencies not installed; CI to run), pnpm jest / lint / typecheck (dependencies not installed; CI to run)
Fixes #14031