Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: b564953 The changes in this PR will be included in the next version bump. This PR includes changesets to release 87 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
f174066 to
89959d5
Compare
|
Kunnen we dit niet volledig afvangen met alleen |
|
Yep, sounds good. Dit werkt ook lekker. Enkel de regel in NavigationItem moet wel blijven. Anders moet je eerst door verborgen navitems tabben in de mobiele weergave (best wel een edge cast want dan moet je je scherm op desktop klein maken) maar goed om af te vangen i guess. Als je dit ook weg wil hebben let me know |
|
|
||
| const tabIndex = useMotionValueValue(selection, (s) => | ||
| s !== false && s.join(',').includes(parentPath) ? undefined : -1, | ||
| s !== false && s.join(',') === parentPath ? undefined : -1, |
There was a problem hiding this comment.
Dit sloopt desktop. Graag weghalen. Op mobiel gaat toch niemand tabben.
| const selection = useNavigationSelection() | ||
| const router = useRouter() | ||
| const navigationOpen = useMotionValueValue(selection, (s) => s !== false) |
There was a problem hiding this comment.
Kun je niet gewoon useNavigationSelection() op de plek waar je inert nodig hebt? Dan hoef je het niet zelf bij te houden en door te geven.
|
Eindresultaat graag even force pushen. Dan houden we de history ook een beetje schoon. |
88be4e4 to
498d79b
Compare
…en navigation menu
498d79b to
b564953
Compare
Written by Claude Code:
With the navigation menu open, Tab moves focus out of the menu into the page behind it. In a submenu, Tab also goes to the items of the parent columns, which are off screen on mobile.
NavigationItem: an item is a tab stop only when itsparentPathis the same as the selection. Theincludescheck also matched the parent columns.NavigationOverlay: Tab on the last focusable element of the pane moves focus to the first one, and Shift+Tab on the first one moves focus to the last one.OverlayBase:overlayPanePropsaccepts the props of a motiondiv, so the pane can getonKeyDown.Test plan: on the magento-graphcms preview, click "Shop" in the header and press Tab and Shift+Tab. Focus goes through Back, Close and the items of the open column, and stays in the menu. Open a submenu with Enter and do the same: only the items of that submenu are tab stops.
🤖 Generated with Claude Code