enhance: checkbox color

feat/tables
Tienson Qin 2024-07-03 10:51:28 +08:00
parent 484c4305ef
commit d132522590
2 changed files with 9 additions and 1 deletions

View File

@ -132,7 +132,7 @@
[& prop-and-children]
(let [[prop children] (get-prop-and-children prop-and-children)]
[:div.flex.relative prop
[:div {:class (str "flex py-1 align-middle border-r w-full overflow-x-clip items-center"
[:div {:class (str "flex align-middle border-r w-full overflow-x-clip items-center"
(if (:select? prop)
" px-0"
" px-4"))}

View File

@ -665,3 +665,11 @@ html.is-mobile {
@apply inline-block;
}
}
button[role="checkbox"][data-state=unchecked] {
border-color: var(--lx-gray-12, var(--ls-primary-text-color, hsl(var(--foreground))));
}
.dark-theme button[role="checkbox"][data-state=unchecked] {
border-color: var(--lx-gray-11, var(--ls-primary-text-color, hsl(var(--foreground))));
}