mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Grafana-UI: Add title in order to read out keyboard shortcuts (#74553)
refactor: remove aria-hidden, add title
This commit is contained in:
@@ -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>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user