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

This commit is contained in:
Gabe Kangas 2023-01-23 19:16:52 -08:00
parent 9d8d9a5b74
commit 308aea9f59
No known key found for this signature in database
GPG key ID: 4345B2060657F330

View file

@ -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>
)}