Skip to content

Commit

Permalink
docs: add some aria labels for a11y (#3993)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald authored Jul 9, 2024
1 parent 864ed08 commit 5a45efb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/app/_components/ThemeMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const ThemeMenu = () => {

return (
<Menu
aria-label="Choose a Theme"
label={<Theme className="text-secondary-600" />}
onAction={current => updateTheme(current)}
placement="bottom end"
Expand Down
1 change: 1 addition & 0 deletions docs/ui/CopyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const CopyButton = ({ codeString }: CopyProps) => {
});
return (
<Button
aria-label="Copy Code"
onPress={setCopied}
className="translate-y-0.5 border-none p-0 outline-0"
>
Expand Down

0 comments on commit 5a45efb

Please sign in to comment.