Skip to content

Commit

Permalink
fix(material-experimental/mdc-checkbox): add missing classes for chec…
Browse files Browse the repository at this point in the history
…ked (#24350)

and disabled on host

(cherry picked from commit 3523adf)
  • Loading branch information
mmalerba committed Feb 5, 2022
1 parent 70bec60 commit 3bbcb44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/material-experimental/mdc-checkbox/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ const _MatCheckboxBase = mixinColor(
'[class._mat-animation-noopable]': `_animationMode === 'NoopAnimations'`,
'[class.mdc-checkbox--disabled]': 'disabled',
'[id]': 'id',
// Add classes that users can use to more easily target disabled or checked checkboxes.
'[class.mat-mdc-checkbox-disabled]': 'disabled',
'[class.mat-mdc-checkbox-checked]': 'checked',
},
providers: [MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR],
exportAs: 'matCheckbox',
Expand Down

0 comments on commit 3bbcb44

Please sign in to comment.