mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
A11Y: Added the name of the section to collapse button for screenreader (#72010)
A11Y: Added the name of the section to aria-label of the button to collapse or expand section in the navigation tree
This commit is contained in:
parent
01369e6aff
commit
e7ad60bfc7
@ -56,7 +56,7 @@ export function NavBarMenuSection({
|
|||||||
</NavBarMenuItem>
|
</NavBarMenuItem>
|
||||||
{children && (
|
{children && (
|
||||||
<Button
|
<Button
|
||||||
aria-label={`${sectionExpanded ? 'Collapse' : 'Expand'} section`}
|
aria-label={`${sectionExpanded ? 'Collapse' : 'Expand'} section ${link.text}`}
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
fill="text"
|
fill="text"
|
||||||
className={styles.collapseButton}
|
className={styles.collapseButton}
|
||||||
|
Loading…
Reference in New Issue
Block a user