@muten/shadcn 0.2.15 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kit.css +10 -0
- package/package.json +1 -1
package/kit.css
CHANGED
|
@@ -5639,3 +5639,13 @@ a.cx-bc-item:hover { color: var(--foreground); }
|
|
|
5639
5639
|
.cx-sidebar[data-collapsed="true"] .cx-sb-fold > .cx-sb-fold-in { visibility: visible; }
|
|
5640
5640
|
.cx-sidebar[data-collapsed="true"] :is(.cx-sb-rowtoggle, .cx-sb-chev) { display: none; }
|
|
5641
5641
|
@media (prefers-reduced-motion: reduce) { .cx-sb-fold, .cx-sb-chev { transition: none; } }
|
|
5642
|
+
|
|
5643
|
+
/* ═════ EVERYTHING YOU CAN CLICK SHOWS THE HAND ═════ */
|
|
5644
|
+
/* A browser gives a <button> the arrow, and shadcn gives menu items, options and selects `cursor: default` (the desktop-app
|
|
5645
|
+
convention). On the web the hand is what says «this does something», so every enabled control takes it: buttons,
|
|
5646
|
+
tabs, menu items, options, switches, checkboxes, toggles, triggers, labels of a box. Disabled ones keep the arrow, and a
|
|
5647
|
+
modal's backdrop (a button that fills the screen) too. The :is() weighs as an element plus an attribute, so it wins
|
|
5648
|
+
over the single-class `cursor: default` rules above. */
|
|
5649
|
+
:is(button, a[href], summary, select, label[for], input[type="checkbox"], input[type="radio"], input[type="range"], input[type="color"], input[type="file"],
|
|
5650
|
+
[role="button"], [role="tab"], [role="menuitem"], [role="menuitemradio"], [role="menuitemcheckbox"], [role="option"], [role="switch"], [role="checkbox"], [role="radio"], [data-slot$="trigger"]):not(:disabled, [aria-disabled="true"], [data-disabled], .cx-overlay) { cursor: pointer; }
|
|
5651
|
+
:is(button, [role="button"], [role="menuitem"], [role="option"], [role="switch"], [role="tab"]):is(:disabled, [aria-disabled="true"], [data-disabled]) { cursor: not-allowed; }
|