mirror of
https://github.com/owncast/owncast.git
synced 2024-11-28 19:19:06 +03:00
Add aria-expanded to toggle chat option. For #1826
This commit is contained in:
parent
9d8d9a5b74
commit
308aea9f59
1 changed files with 6 additions and 1 deletions
|
@ -96,7 +96,12 @@ export const UserDropdown: FC<UserDropdownProps> = ({ username: defaultUsername
|
||||||
Authenticate
|
Authenticate
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
{appState.chatAvailable && (
|
{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'}
|
{chatToggleVisible ? 'Hide Chat' : 'Show Chat'}
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue