Skip to content

Commit 2ff5aed

Browse files
committed
fix(material-experimental/mdc-checkbox): Use cursor:pointer for label
1 parent 2c11c0d commit 2ff5aed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/material-experimental/mdc-checkbox/checkbox.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@
7474
}
7575
}
7676

77+
// Clicking the label toggles the checkbox, but MDC does not include any styles that inform the
78+
// user of this. Therefore we add the pointer cursor on top of MDC's styles.
79+
label {
80+
cursor: pointer;
81+
}
82+
7783
// The MDC styles result in extra padding if the label is present but empty. To fix this we hide
7884
// the label when it is empty.
7985
label:empty {

0 commit comments

Comments
 (0)