Skip to content

Commit

Permalink
fix(checkbox): wrong cursor when disabled
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 committed Jul 25, 2016
1 parent 16eb6be commit 6dcc187
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 6dcc187

Please sign in to comment.