Closed justinwolfe closed 2 years ago
Latest commit: |
0121a62
|
Status: | ✅ Deploy successful! |
Preview URL: | https://b092d46f.hsds-react.pages.dev |
@plbabin had the great idea, rather than just passing a custom label, to pass in a removeProps
object so that we could have flexibility to pass additional props, so I've switched to that!
Problem/Feature
In the beautiful CC/BCC implementation that @plbabin did for the mailbox rewrite, we're using the Tag component as a badge to represent the email address. During accessibility review, we found it would be best to be able to customize the label, since it reads "Remove Tag" but in this context there isn't a tag. This adds a prop to be able to set the aria-label and test ID of the removal element to a different value:
Guidelines
Make sure the pull request:
proptypes
) Guidelines