mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard: Accessible text for search links #37593
This commit is contained in:
@@ -66,7 +66,11 @@ export const PageToolbar: FC<Props> = React.memo(
|
|||||||
<nav className={styles.navElement}>
|
<nav className={styles.navElement}>
|
||||||
{parent && parentHref && (
|
{parent && parentHref && (
|
||||||
<>
|
<>
|
||||||
<Link className={cx(styles.titleText, styles.parentLink, styles.titleLink)} href={parentHref}>
|
<Link
|
||||||
|
aria-label={`Search dashboard in the ${parent} folder`}
|
||||||
|
className={cx(styles.titleText, styles.parentLink, styles.titleLink)}
|
||||||
|
href={parentHref}
|
||||||
|
>
|
||||||
{parent} <span className={styles.parentIcon}></span>
|
{parent} <span className={styles.parentIcon}></span>
|
||||||
</Link>
|
</Link>
|
||||||
{titleHref && (
|
{titleHref && (
|
||||||
@@ -78,7 +82,11 @@ export const PageToolbar: FC<Props> = React.memo(
|
|||||||
)}
|
)}
|
||||||
{titleHref && (
|
{titleHref && (
|
||||||
<h1 className={styles.h1Styles}>
|
<h1 className={styles.h1Styles}>
|
||||||
<Link className={cx(styles.titleText, styles.titleLink)} href={titleHref}>
|
<Link
|
||||||
|
aria-label="Search dashboard by name"
|
||||||
|
className={cx(styles.titleText, styles.titleLink)}
|
||||||
|
href={titleHref}
|
||||||
|
>
|
||||||
{title}
|
{title}
|
||||||
</Link>
|
</Link>
|
||||||
</h1>
|
</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user