Browse Source

Add aria-expanded to toggle chat option. For #1826

pull/2632/head
Gabe Kangas 3 years ago
parent
commit
308aea9f59
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 7
      web/components/common/UserDropdown/UserDropdown.tsx

7
web/components/common/UserDropdown/UserDropdown.tsx

@ -96,7 +96,12 @@ export const UserDropdown: FC<UserDropdownProps> = ({ username: defaultUsername @@ -96,7 +96,12 @@ export const UserDropdown: FC<UserDropdownProps> = ({ username: defaultUsername
Authenticate
</Menu.Item>
{appState.chatAvailable && (
<Menu.Item key="3" icon={<MessageOutlined />} onClick={() => toggleChatVisibility()}>
<Menu.Item
key="3"
icon={<MessageOutlined />}
onClick={() => toggleChatVisibility()}
aria-expanded={chatToggleVisible}
>
{chatToggleVisible ? 'Hide Chat' : 'Show Chat'}
</Menu.Item>
)}

Loading…
Cancel
Save