mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Grafana-UI: Add title in order to read out keyboard shortcuts (#74553)
refactor: remove aria-hidden, add title
This commit is contained in:
parent
1f6f866a36
commit
dfd6134ff1
@ -166,7 +166,7 @@ export const MenuItem = React.memo(
|
|||||||
<div className={cx(styles.rightWrapper, { [styles.withShortcut]: hasShortcut })}>
|
<div className={cx(styles.rightWrapper, { [styles.withShortcut]: hasShortcut })}>
|
||||||
{hasShortcut && (
|
{hasShortcut && (
|
||||||
<div className={styles.shortcut}>
|
<div className={styles.shortcut}>
|
||||||
<Icon name="keyboard" aria-hidden />
|
<Icon name="keyboard" title="keyboard shortcut" />
|
||||||
{shortcut}
|
{shortcut}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user