Skip to content

Commit

Permalink
fix(checkbox): wrong cursor when disabled (#908)
Browse files Browse the repository at this point in the history
Fixes the checkbox using a pointer cursor, even when the element is disabled.

Fixes #907.
  • Loading branch information
crisbeto authored and hansl committed Jul 25, 2016
1 parent 0be5155 commit 5251c27
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/checkbox/checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,13 @@ $_md-checkbox-indeterminate-checked-easing-function: cubic-bezier(0.14, 0, 0, 1)
}

md-checkbox {
&, label {
cursor: pointer;
}
cursor: pointer;
}

.md-checkbox-layout {
// `cursor: inherit` ensures that the wrapper element gets the same cursor as the md-checkbox
// (e.g. pointer by default, regular when disabled), instead of the browser default.
cursor: inherit;
align-items: baseline;
display: inline-flex;
}
Expand Down

0 comments on commit 5251c27

Please sign in to comment.