fix(a11y): replace aria-pressed with aria-expanded on menu-trigger buttons\n\nCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

This commit is contained in:
Lotus Bot
2026-05-21 13:06:40 -04:00
parent d93d3719a6
commit df626a9064
3 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -134,7 +134,8 @@ export function ServerPicker({
aria-label="Change server"
variant={allowCustomServer ? 'Background' : 'Surface'}
size="300"
aria-pressed={!!serverMenuAnchor}
aria-expanded={!!serverMenuAnchor}
aria-haspopup="menu"
radii="300"
>
<Icon src={Icons.ChevronBottom} />
@@ -98,7 +98,8 @@ function UsernameHint({ server }: { server: string }) {
size="300"
radii="300"
aria-label="Username format hint"
aria-pressed={!!anchor}
aria-expanded={!!anchor}
aria-haspopup="dialog"
>
<Icon style={{ opacity: config.opacity.P300 }} size="100" src={Icons.Info} />
</IconButton>
+4 -2
View File
@@ -233,7 +233,8 @@ function ThirdPartyProtocolsSelector({
>
<Chip
onClick={handleOpenMenu}
aria-pressed={!!menuAnchor}
aria-expanded={!!menuAnchor}
aria-haspopup="menu"
radii="Pill"
size="400"
variant={instanceId ? 'Success' : 'SurfaceVariant'}
@@ -328,7 +329,8 @@ function LimitButton({ limit, onLimitChange }: LimitButtonProps) {
>
<Chip
onClick={handleOpenMenu}
aria-pressed={!!menuAnchor}
aria-expanded={!!menuAnchor}
aria-haspopup="menu"
radii="Pill"
size="400"
variant="SurfaceVariant"