Skip to content

Commit

Permalink
refactor: updated aria-label in checkbox links (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
masopego authored Apr 8, 2022
1 parent 875d38b commit c75a754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/Markdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Markdown = React.forwardRef(({ modalLabel, ...props }, ref) => {
<Link
href={`${href}`}
target={modalName ? '_self' : '_blank'}
aria-label={modalLabel ? `${modalName} ${modalLabel}` : `${modalName}`}
{...(modalLabel ? `aria-label=${modalName} ${modalLabel}` : '')}
{...(modalName ? { onClick: () => props.onLinkOpen(modalName) } : {})}
>
{children}
Expand Down

0 comments on commit c75a754

Please sign in to comment.