Skip to content

Commit 5d3e8f5

Browse files
authored
fix(ui5-checkbox): cursor style when disabled (#4392)
1 parent 9ee0e96 commit 5d3e8f5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/main/src/themes/CheckBox.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
}
1616

1717
/* disabled */
18+
:host([disabled]) {
19+
cursor: default;
20+
}
21+
1822
:host([disabled]) .ui5-checkbox-root {
1923
opacity: .5;
2024
}
@@ -221,7 +225,7 @@ https://github.com/philipwalton/flexbugs/issues/231
221225
color: var(--_ui5_checkbox_checkmark_color);
222226
box-sizing: border-box;
223227
position: relative;
224-
cursor: default;
228+
cursor: inherit;
225229
}
226230

227231
:host([indeterminate][checked]) .ui5-checkbox-inner::after {
@@ -247,7 +251,7 @@ https://github.com/philipwalton/flexbugs/issues/231
247251
.ui5-checkbox-root .ui5-checkbox-label {
248252
margin-left: var(--_ui5_checkbox_label_offset_left);
249253
margin-right: var(--_ui5_checkbox_label_offset_right);
250-
cursor: default;
254+
cursor: inherit;
251255
text-overflow: ellipsis;
252256
overflow: hidden;
253257
pointer-events: none;
@@ -261,7 +265,7 @@ https://github.com/philipwalton/flexbugs/issues/231
261265
width: var(--_ui5_checkbox_icon_size);
262266
height: var(--_ui5_checkbox_icon_size);
263267
color: currentColor;
264-
cursor: default;
268+
cursor: inherit;
265269
position: absolute;
266270
left:50%;
267271
top:50%;

0 commit comments

Comments
 (0)