Skip to content

Commit

Permalink
fixup! fix(material-experimental/mdc-checkbox): add missing classes f…
Browse files Browse the repository at this point in the history
…or checked and disabled on host
  • Loading branch information
mmalerba committed Feb 4, 2022
1 parent 5985a54 commit 401331c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/material-experimental/mdc-checkbox/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ const _MatCheckboxBase = mixinColor(
host: {
'class': 'mat-mdc-checkbox',
'[attr.tabindex]': 'null',
'[class.mat-mdc-checkbox-disabled]': 'disabled',
'[class.mat-mdc-checkbox-checked]': 'checked',
'[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 401331c

Please sign in to comment.