Repository navigation
feat(Tag): name the add and dismiss buttons after the action - #3114
Open
SamuelAlev wants to merge 1 commit into
Open
SamuelAlev wants to merge 1 commit into
SamuelAlev wants to merge 1 commit into
Conversation
Co-Authored-By: Control Center <hi@usectrl.dev>
🦋 Changeset detectedLatest commit: 3284644 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for fondue-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
SamuelAlev
commented
Nov 23, 2026
Comment on lines
+46
to
+53
| /** | ||
| * Accessible name of the dismiss button. Falls back to the translated "Dismiss" followed by `aria-label` or `title`. | ||
| */ | ||
| dismissLabel?: string; | ||
| /** | ||
| * Accessible name of the add button. Falls back to the translated "Add" followed by `aria-label` or `title`. | ||
| */ | ||
| addLabel?: string; |
Member
Author
There was a problem hiding this comment.
Not a fan but the component doesn't use composition so it is what it is, lmk if you got a better idea
SamuelAlev
requested review from
jcosta33
and removed request for
noahwaldner
November 23, 2026 23:31
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Translated defaults:
Tag's add (+) and dismiss (×) buttons were named with hardcoded English:Add ${aria-label}andDismiss ${aria-label}. They now use the translation keysTag_addandTag_dismiss, which have entries in all 11 locales (the dismiss wording matchesBadge_dismiss). When the tag has noaria-labelortitle, the name is trimmed, so it is "Dismiss" instead of "Dismiss ".New optional props:
dismissLabelnames the dismiss button after the action.addLabeldoes the same for the add button.Why
A screen reader announces the dismiss button as "Dismiss ". That doesn't say what dismissing does. In web-app's Catalogs table, the × on a linked-item chip removes the link, and an accessibility audit flagged it as "Dismiss View details for MAT-0012" (BF-894). With
dismissLabel, consumers can pass "Remove link to MAT-0012".Testing
Tag.spec.tsx: 15 tests pass. The new ones cover the translated default names, the trimmed name when the tag has no label, anddismissLabel/addLabel(including that the dismiss callback still fires).tsgo --noEmit, oxlint and oxfmt are clean forpackages/components.The changeset is a minor bump of
@frontify/fondue-components.Opened by a Control Center agent at the request of @SamuelAlev.