-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material/chips): allow for role to be overwritten on chip list and chip #15794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/lib/chips/chip-list.ts
Outdated
@@ -165,7 +165,18 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo | |||
} | |||
|
|||
/** The ARIA role applied to the chip list. */ | |||
get role(): string | null { return this.empty ? null : 'listbox'; } | |||
@Input() | |||
get role(): string | null { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I'm not a fan of this property signature (having | null
), but I kept it for backwards compatibility. Since the property was readonly until now we could get away with changing it to just be a string
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
75927e5
to
c7c3925
Compare
c7c3925
to
982bc37
Compare
982bc37
to
86ffda4
Compare
86ffda4
to
744d033
Compare
744d033
to
34058d2
Compare
34058d2
to
4e052bd
Compare
4e052bd
to
1504b3d
Compare
…d chip Allows for the ARIA `role` of the `mat-chip-list` and `mat-chip` to be overwritten. Fixes angular#15787.
1504b3d
to
8353dc5
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Allows for the ARIA
role
of themat-chip-list
andmat-chip
to be overwritten.Fixes #15787.