We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5985a54 commit 401331cCopy full SHA for 401331c
src/material-experimental/mdc-checkbox/checkbox.ts
@@ -77,11 +77,12 @@ const _MatCheckboxBase = mixinColor(
77
host: {
78
'class': 'mat-mdc-checkbox',
79
'[attr.tabindex]': 'null',
80
- '[class.mat-mdc-checkbox-disabled]': 'disabled',
81
- '[class.mat-mdc-checkbox-checked]': 'checked',
82
'[class._mat-animation-noopable]': `_animationMode === 'NoopAnimations'`,
83
'[class.mdc-checkbox--disabled]': 'disabled',
84
'[id]': 'id',
+ // Add classes that users can use to more easily target disabled or checked checkboxes.
+ '[class.mat-mdc-checkbox-disabled]': 'disabled',
85
+ '[class.mat-mdc-checkbox-checked]': 'checked',
86
},
87
providers: [MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR],
88
exportAs: 'matCheckbox',
0 commit comments