Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 6515150

Browse files
Derek LouieThomasBurleson
authored andcommitted
fix(checkbox): md-checkbox documentation update & indeterminate color fix.
Closes #8513
1 parent 3654fbf commit 6515150

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/components/checkbox/checkbox-theme.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ md-checkbox.md-THEME_NAME-theme {
8080
border-color: '{{background-200}}';
8181
}
8282

83+
._md-icon:after {
84+
border-color: '{{foreground-3}}';
85+
}
86+
8387
._md-label {
8488
color: '{{foreground-3}}';
8589
}

src/components/checkbox/checkbox.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ angular
3131
* @param {expression=} md-indeterminate This determines when the checkbox should be rendered as 'indeterminate'.
3232
* If a truthy expression or no value is passed in the checkbox renders in the md-indeterminate state.
3333
* If falsy expression is passed in it just looks like a normal unchecked checkbox.
34-
* The indeterminate, checked, and unchecked states are mutually exclusive. A box cannot be in any two states at the same time.
35-
* When a checkbox is indeterminate that overrides any checked/unchecked rendering logic.
34+
* The indeterminate, checked, and unchecked states are mutually exclusive. A box cannot be in any two states at the same time.
35+
* Adding the 'md-indeterminate' attribute overrides any checked/unchecked rendering logic.
36+
* When using the 'md-indeterminate' attribute use 'ng-checked' to define rendering logic instead of using 'ng-model'.
37+
* @param {expression=} ng-checked If this expression evaluates as truthy, the 'md-checked' css class is added to the checkbox and it
38+
* will appear checked.
3639
*
3740
* @usage
3841
* <hljs lang="html">

0 commit comments

Comments
 (0)