Repository navigation
Conversation
c-chip: color, size, outline, active, clickable, selectable/filter with
check icon, removable with remove button, Backspace/Delete removal;
Space on a focusable chip never scrolls the page.
Roles follow the v6 model: option in a selectable set, button with
aria-pressed when selectable, no role and no aria-* otherwise. The remove
button is labelled with the chip text ("Remove Angular") and becomes an
aria-hidden indicator inside an option; a removable toggle chip takes its
text as aria-label unless the page sets one. The text follows content
changes.
c-chip-set: data-driven [chips] (chipsChange, never mutated) plus
projected chips, [(selected)] with single/multiple mode owned by the
parent, listbox/group role, one roving tab stop (also before the first
refresh and on the server), arrow/Home/End navigation mirrored in RTL,
focus moved to the neighbour (or the set) after the focused chip is
removed, added/removed chips announced through a page live region.
AnnouncerService is internal and ports the v6 announce() core. Specs run
zoneless.
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.
Adds
c-chipandc-chip-setThe set takes
[chips]and projected chips,[(selected)](single or multiple) and emitsremove/chipsChange, so the parent decides on removal. One tab stop per set (roving tabindex), arrow keys mirrored in RTL, focus moves to a neighbor after removal, and added or removed chips are announced. A standalonec-chipdoes not bundle the set code.