Skip to content

Commit

Permalink
Refactor follow-button aria-label
Browse files Browse the repository at this point in the history
Use the DAC compliant form where the visual string is reused and not broken
  • Loading branch information
Camille Croci committed Dec 9, 2022
1 parent 74fc350 commit ca7a46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/x-follow-button/src/FollowButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const FollowButton = (props) => {
}

const getAccessibleText = () =>
isFollowed ? `Remove ${conceptName} from myFT` : `Add ${conceptName} to myFT`
isFollowed ? `Added ${conceptName} to myFT: click to remove` : `Add to myFT: ${conceptName}`

return (
<form
Expand Down

0 comments on commit ca7a46a

Please sign in to comment.