MCPcopy Create free account
hub / github.com/angular/components / ariaSelected

Method ariaSelected

src/material/chips/chip-option.ts:135–137  ·  view source on GitHub ↗

* The ARIA selected applied to the chip. Conforms to WAI ARIA best practices for listbox * interaction patterns. * * From [WAI ARIA Listbox authoring practices guide]( * https://www.w3.org/WAI/ARIA/apg/patterns/listbox/): * "If any options are selected, each selected option has eithe

()

Source from the content-addressed store, hash-verified

133 * VoiceOver reading every option as "selected" (#25736).
134 */
135 get ariaSelected(): string | null {
136 return this.selectable ? this.selected.toString() : null;
137 }
138
139 /** The unstyled chip selector for this component. */
140 protected override basicChipAttrName = 'mat-basic-chip-option';

Callers 2

constructorMethod · 0.80
grid.spec.tsFile · 0.80

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected