fix(frontend): add pointer cursor to interactive controls (#4921)

* fix(frontend): add pointer cursor to interactive controls

* fix(frontend): address cursor selector review feedback
This commit is contained in:
dong 2026-09-13 09:37:27 +08:00 committed by GitHub
parent ce635b7de6
commit 98ae762db9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -443,6 +443,14 @@ html.dark .shiki span {
background: color-mix(in oklch, var(--muted-foreground) 35%, transparent);
border-radius: 999px;
}
:is(button, [role="button"]):not(
:disabled,
[aria-disabled="true"],
[data-disabled="true"]
) {
cursor: pointer;
}
}
:root {
@ -451,3 +459,16 @@ html.dark .shiki span {
--container-width-md: calc(var(--spacing) * 204);
--container-width-lg: calc(var(--spacing) * 256);
}
@layer utilities {
:is(
[data-slot="dropdown-menu-item"],
[data-slot="dropdown-menu-checkbox-item"],
[data-slot="dropdown-menu-radio-item"],
[data-slot="dropdown-menu-sub-trigger"],
[data-slot="command-item"]
):not(:disabled, [aria-disabled="true"], [data-disabled="true"]) {
/* Override this registry rule with an important utility, e.g. cursor-default!. */
cursor: pointer;
}
}