fix missing aria-label on links / navlinks
This commit is contained in:
parent
c11b73d117
commit
b595021a7f
1 changed files with 3 additions and 0 deletions
|
@ -153,6 +153,7 @@ const Button = forwardRef<any, {}>((props: Props, ref: any) => {
|
||||||
className={combinedClassName}
|
className={combinedClassName}
|
||||||
title={title}
|
title={title}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
|
aria-label={ariaLabel}
|
||||||
>
|
>
|
||||||
{content}
|
{content}
|
||||||
</a>
|
</a>
|
||||||
|
@ -199,6 +200,7 @@ const Button = forwardRef<any, {}>((props: Props, ref: any) => {
|
||||||
disabled={disable}
|
disabled={disable}
|
||||||
className={combinedClassName}
|
className={combinedClassName}
|
||||||
activeClassName={activeClass}
|
activeClassName={activeClass}
|
||||||
|
aria-label={ariaLabel}
|
||||||
>
|
>
|
||||||
{content}
|
{content}
|
||||||
</NavLink>
|
</NavLink>
|
||||||
|
@ -219,6 +221,7 @@ const Button = forwardRef<any, {}>((props: Props, ref: any) => {
|
||||||
}}
|
}}
|
||||||
className={combinedClassName}
|
className={combinedClassName}
|
||||||
activeClassName={activeClass}
|
activeClassName={activeClass}
|
||||||
|
aria-label={ariaLabel}
|
||||||
{...otherProps}
|
{...otherProps}
|
||||||
>
|
>
|
||||||
{content}
|
{content}
|
||||||
|
|
Loading…
Reference in a new issue