Skip to content

Commit c5c10b4

Browse files
authored
Merge pull request #330 from appwrite/fix-disabled-state
Fix disabled state on checkbox's hover
2 parents 960acb5 + 1a3ac17 commit c5c10b4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

v2/pink-sb/src/lib/selector/Checkbox.svelte

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
border-radius: var(--border-radius-xxs);
9797
}
9898
99-
&:hover:not(.active):not([aria-disabled='true']) {
99+
&:hover:not(.active):not([aria-disabled='true']):not([disabled]) {
100100
background-color: var(--overlay-button-neutral-hover);
101101
}
102102
@@ -105,9 +105,15 @@
105105
background-color: var(--bgcolor-neutral-invert);
106106
}
107107
108-
&:disabled {
108+
&:disabled,
109+
&[aria-disabled='true'] {
109110
opacity: 0.4;
111+
cursor: default;
110112
background-color: var(--bgcolor-neutral-tertiary);
113+
114+
&:hover {
115+
background-color: var(--bgcolor-neutral-tertiary);
116+
}
111117
}
112118
113119
&:focus,

0 commit comments

Comments
 (0)