fix missing aria-label on links / navlinks

This commit is contained in:
btzr-io 2021-07-13 16:38:50 -05:00
parent c11b73d117
commit b595021a7f

View file

@ -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}