mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-28 01:29:07 +03:00
add aria-label to buttons and text fields with no label #2710
This commit is contained in:
@@ -164,7 +164,7 @@ const NetworkSettings = () => {
|
||||
selectedNetwork.bssid
|
||||
}
|
||||
/>
|
||||
<IconButton onClick={setCancel}>
|
||||
<IconButton onClick={setCancel} aria-label={LL.CANCEL()}>
|
||||
<DeleteIcon />
|
||||
</IconButton>
|
||||
</ListItem>
|
||||
|
||||
@@ -211,15 +211,24 @@ const ManageUsers = () => {
|
||||
<Cell stiff>
|
||||
<IconButton
|
||||
size="small"
|
||||
aria-label={LL.GENERATING_TOKEN()}
|
||||
disabled={!authenticatedContext.me.admin}
|
||||
onClick={() => generateTokenForUser(u.username)}
|
||||
>
|
||||
<VpnKeyIcon />
|
||||
</IconButton>
|
||||
<IconButton size="small" onClick={() => removeUser(u)}>
|
||||
<IconButton
|
||||
size="small"
|
||||
onClick={() => removeUser(u)}
|
||||
aria-label={LL.REMOVE()}
|
||||
>
|
||||
<DeleteIcon />
|
||||
</IconButton>
|
||||
<IconButton size="small" onClick={() => editUser(u)}>
|
||||
<IconButton
|
||||
size="small"
|
||||
onClick={() => editUser(u)}
|
||||
aria-label={LL.EDIT()}
|
||||
>
|
||||
<EditIcon />
|
||||
</IconButton>
|
||||
</Cell>
|
||||
|
||||
Reference in New Issue
Block a user