The label in name criterion requires that the visible label be contained in the accessible name. At the moment they are different: "Added" vs "Remove from myFT".
The solution
Use the strings "Add to myFT: conceptName" and "Added conceptName to myFT: click to remove". Here the visual labels 'Added' and 'Add to myFT' are the first in the aria label.
The information "click to remove" allows to be aware of the action when clicking the button.
The visual string is no longer broken.
Test
Run storybook and inspect the x-follow-button to see the aria-label
The issue
Jira ticket 1
Jira ticket 2
The label in name criterion requires that the visible label be contained in the accessible name. At the moment they are different: "Added" vs "Remove from myFT".
The solution
Use the strings "Add to myFT: conceptName" and "Added conceptName to myFT: click to remove". Here the visual labels 'Added' and 'Add to myFT' are the first in the aria label.
The information "click to remove" allows to be aware of the action when clicking the button.
The visual string is no longer broken.
Test
Run storybook and inspect the x-follow-button to see the aria-label