Skip to content

Commit 0792916

Browse files
authored
docs: navigation menu (#2876)
* feat: add docs for navigation menu * docs: fix styles in dark mode * docs: update navigation menu examples and remove unnecessary files * docs: add accessibility documentation * docs: use getLinkProps
1 parent 42f5b8e commit 0792916

29 files changed

+1408
-0
lines changed

packages/docs/data/accessibility.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,5 +794,33 @@
794794
"description": "Closes the dialog and moves focus to trigger or the defined final focus element"
795795
}
796796
]
797+
},
798+
"navigation-menu": {
799+
"keyboard": [
800+
{
801+
"keys": ["ArrowDown"],
802+
"description": "When focus is on trigger (vertical orientation), moves focus to the next trigger."
803+
},
804+
{
805+
"keys": ["ArrowUp"],
806+
"description": "When focus is on trigger (vertical orientation), moves focus to the previous trigger."
807+
},
808+
{
809+
"keys": ["ArrowRight"],
810+
"description": "<span>When focus is on trigger (horizontal orientation), moves focus to the next trigger.<br />When focus is on content, moves focus to the next link.</span>"
811+
},
812+
{
813+
"keys": ["ArrowLeft"],
814+
"description": "<span>When focus is on trigger (horizontal orientation), moves focus to the previous trigger.<br />When focus is on content, moves focus to the previous link.</span>"
815+
},
816+
{
817+
"keys": ["Home"],
818+
"description": "<span>When focus is on trigger, moves focus to the first trigger.<br />When focus is on content, moves focus to the first link.</span>"
819+
},
820+
{
821+
"keys": ["End"],
822+
"description": "<span>When focus is on trigger, moves focus to the last trigger.<br />When focus is on content, moves focus to the last link.</span>"
823+
}
824+
]
797825
}
798826
}

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)