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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user