Grafana-UI: Add title in order to read out keyboard shortcuts (#74553)

refactor: remove aria-hidden, add title
This commit is contained in:
Laura Benz 2023-09-18 10:44:12 +02:00 committed by GitHub
parent 1f6f866a36
commit dfd6134ff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ export const MenuItem = React.memo(
<div className={cx(styles.rightWrapper, { [styles.withShortcut]: hasShortcut })}>
{hasShortcut && (
<div className={styles.shortcut}>
<Icon name="keyboard" aria-hidden />
<Icon name="keyboard" title="keyboard shortcut" />
{shortcut}
</div>
)}