From 6dcc1875873cf13a3d3c4276737b574da127c53a Mon Sep 17 00:00:00 2001 From: crisbeto Date: Sat, 23 Jul 2016 13:05:32 +0200 Subject: [PATCH] fix(checkbox): wrong cursor when disabled Fixes the checkbox using a pointer cursor, even when the element is disabled. Fixes #907. --- src/components/checkbox/checkbox.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/checkbox/checkbox.scss b/src/components/checkbox/checkbox.scss index 5b8e91eed116..3c1ab171dbb3 100644 --- a/src/components/checkbox/checkbox.scss +++ b/src/components/checkbox/checkbox.scss @@ -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; }