⌨️ solid focus rings and sheet keyboard flow in both themes
Browse files at this commit2bb150c7b141a08ab683e46a8dd581f63fa8a92dParent: af319c2- fix
- ⌨️ solid focus rings and sheet keyboard flow in both themes
19 changed files +58 -33
- docs/ui/figma-migration-coverage.md +12 -6
- src/components/layout/celebi-composer.tsx +1 -1
- src/components/layout/celebi-reply-actions.tsx +2 -2
- src/components/layout/celebi-suggestions.tsx +1 -1
- src/components/layout/mobile-nav-sheet.tsx +24 -2
- src/components/layout/mobile-tab-bar.tsx +1 -0
- src/components/layout/sidebar-account.tsx +1 -1
- src/components/ui/badge.tsx +1 -1
- src/components/ui/button.tsx +1 -1
- src/components/ui/combobox.tsx +1 -1
- src/components/ui/date-picker.tsx +4 -4
- src/components/ui/dialog.tsx +1 -1
- src/components/ui/input.tsx +1 -1
- src/components/ui/select.tsx +2 -2
- src/components/ui/side-panel.tsx +1 -1
- src/components/ui/tabs.tsx +1 -1
- src/components/ui/textarea.tsx +1 -1
- src/index.css +1 -5
- src/pages/dashboard-page.tsx +1 -1
docs/ui/figma-migration-coverage.mdmodified+12 -6
| @@ -160,12 +160,18 @@ Migration is closed as of 2026-09-12 (`bd0720f`): every Figma frame has a | ||
| 160 | 160 | working screen, nothing invents a value the API cannot serve, and |
| 161 | 161 | `bun run build` + the full `vitest` suite are green. No open bug remains. |
| 162 | 162 | |
| 163 | -Two checks are deliberately deferred, not missing work — both are | |
| 164 | -verification passes over finished screens, to be run when budget allows: | |
| 165 | - | |
| 166 | -- Focus-contrast check: visible focus rings and text contrast in both themes. | |
| 167 | -- Mobile keyboard tour: tab order and focus traps through dialogs, side | |
| 168 | - panels, tables, and mobile navigation at 393px. | |
| 163 | +Both deferred checks ran green on 2026-09-12 against `test-okulu` (admin), | |
| 164 | +via throwaway Playwright tours (specs deleted after the run, nothing kept): | |
| 165 | + | |
| 166 | +- Focus-contrast check: every Tab stop on the dashboard in light and dark, | |
| 167 | + desktop and mobile, carries a visible indicator at ≥3:1 (computed per | |
| 168 | + stop, not eyeballed). Two real fixes came out of it: translucent | |
| 169 | + `ring-*/NN` focus utilities are now solid `ring-ring` across primitives, | |
| 170 | + and the light-theme `--ring` is Figma's `brand-ink` (brand blue was | |
| 171 | + 2.5:1 on light surfaces). | |
| 172 | +- Mobile keyboard tour: Menü opens the sheet with focus parked on its close | |
| 173 | + button, Escape closes it and returns focus to the Menü trigger, deadline | |
| 174 | + rows activate with Enter, and no focus is ever lost to the body. | |
| 169 | 175 | |
| 170 | 176 | Desktop, student mobile and parent mobile composition are complete, and the |
| 171 | 177 | student and parent routes were walked at 393px, 375px and 320px against a |
src/components/layout/celebi-composer.tsxmodified+1 -1
| @@ -50,7 +50,7 @@ export function CelebiComposer(props: { | ||
| 50 | 50 | submit(); |
| 51 | 51 | }} |
| 52 | 52 | > |
| 53 | - <div class="flex items-end gap-2 rounded-lg border border-border bg-card px-3 py-2 shadow-sm transition-all focus-within:border-primary/40 focus-within:ring-2 focus-within:ring-primary/25"> | |
| 53 | + <div class="flex items-end gap-2 rounded-lg border border-border bg-card px-3 py-2 shadow-sm transition-all focus-within:border-primary/40 focus-within:ring-2 focus-within:ring-ring"> | |
| 54 | 54 | <Textarea |
| 55 | 55 | ref={field} |
| 56 | 56 | rows={1} |
src/components/layout/celebi-reply-actions.tsxmodified+2 -2
| @@ -30,7 +30,7 @@ export function CelebiReplyActions(props: { | ||
| 30 | 30 | {(target) => ( |
| 31 | 31 | <button |
| 32 | 32 | type="button" |
| 33 | - class="inline-flex max-w-full items-center gap-1.5 rounded-lg border border-primary/40 bg-primary/10 px-2.5 py-1.5 text-xs font-medium text-foreground transition-colors hover:bg-primary/20 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/50" | |
| 33 | + class="inline-flex max-w-full items-center gap-1.5 rounded-lg border border-primary/40 bg-primary/10 px-2.5 py-1.5 text-xs font-medium text-foreground transition-colors hover:bg-primary/20 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring" | |
| 34 | 34 | onClick={() => props.onNavigate(target())} |
| 35 | 35 | > |
| 36 | 36 | <span class="truncate">{label()}</span> |
| @@ -50,7 +50,7 @@ export function CelebiReplyActions(props: { | ||
| 50 | 50 | {(text) => ( |
| 51 | 51 | <button |
| 52 | 52 | type="button" |
| 53 | - class="max-w-full rounded-full border border-border bg-card px-2.5 py-1 text-left text-xs leading-5 text-foreground transition-colors hover:border-primary/40 hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/50" | |
| 53 | + class="max-w-full rounded-full border border-border bg-card px-2.5 py-1 text-left text-xs leading-5 text-foreground transition-colors hover:border-primary/40 hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring" | |
| 54 | 54 | onClick={() => props.onPick(text)} |
| 55 | 55 | > |
| 56 | 56 | {text} |
src/components/layout/celebi-suggestions.tsxmodified+1 -1
| @@ -22,7 +22,7 @@ export function CelebiSuggestions(props: { onPick: (text: string) => void }) { | ||
| 22 | 22 | {(key) => ( |
| 23 | 23 | <button |
| 24 | 24 | type="button" |
| 25 | - class="rounded-xl border border-border bg-card px-3 py-2.5 text-left text-xs leading-5 text-foreground shadow-xs transition-all hover:border-primary/40 hover:bg-muted active:scale-[0.98] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/50" | |
| 25 | + class="rounded-xl border border-border bg-card px-3 py-2.5 text-left text-xs leading-5 text-foreground shadow-xs transition-all hover:border-primary/40 hover:bg-muted active:scale-[0.98] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring" | |
| 26 | 26 | onClick={() => props.onPick(t(key))} |
| 27 | 27 | > |
| 28 | 28 | {t(key)} |
src/components/layout/mobile-nav-sheet.tsxmodified+24 -2
| @@ -1,4 +1,4 @@ | ||
| 1 | -import { For, Show, createSignal } from "solid-js"; | |
| 1 | +import { For, Show, createEffect, createSignal, onCleanup } from "solid-js"; | |
| 2 | 2 | import { Link, useRouterState } from "@tanstack/solid-router"; |
| 3 | 3 | import { routeNavItem, visibleNavGroups, type NavItem } from "@/components/layout/nav-items"; |
| 4 | 4 | import { SidebarAccount } from "@/components/layout/sidebar-account"; |
| @@ -53,7 +53,26 @@ export function MobileNavSheet(props: { | ||
| 53 | 53 | const [dragY, setDragY] = createSignal(0); |
| 54 | 54 | const [dragging, setDragging] = createSignal(false); |
| 55 | 55 | let startY = 0; |
| 56 | - | |
| 56 | + // Keyboard users arrive here through the Menü tab control. Park focus on | |
| 57 | + // the close button while the sheet is up (Escape closes it too) and hand | |
| 58 | + // focus back to the Menü trigger on dismiss, so focus never strands on | |
| 59 | + // the body or inside an off-screen panel. | |
| 60 | + let closeBtn: HTMLButtonElement | undefined; | |
| 61 | + let wasOpen = false; | |
| 62 | + createEffect(() => { | |
| 63 | + if (props.open) { | |
| 64 | + wasOpen = true; | |
| 65 | + closeBtn?.focus(); | |
| 66 | + const onKey = (event: KeyboardEvent) => { | |
| 67 | + if (event.key === "Escape") props.onClose(); | |
| 68 | + }; | |
| 69 | + window.addEventListener("keydown", onKey); | |
| 70 | + onCleanup(() => window.removeEventListener("keydown", onKey)); | |
| 71 | + } else if (wasOpen) { | |
| 72 | + wasOpen = false; | |
| 73 | + document.getElementById("mobile-menu-trigger")?.focus(); | |
| 74 | + } | |
| 75 | + }); | |
| 57 | 76 | const startDrag = (event: PointerEvent) => { |
| 58 | 77 | if (event.pointerType === "mouse" && event.button !== 0) return; |
| 59 | 78 | startY = event.clientY; |
| @@ -122,6 +141,9 @@ export function MobileNavSheet(props: { | ||
| 122 | 141 | <h2 class="text-base font-semibold">{t("nav.menu")}</h2> |
| 123 | 142 | <button |
| 124 | 143 | type="button" |
| 144 | + ref={(el) => { | |
| 145 | + closeBtn = el; | |
| 146 | + }} | |
| 125 | 147 | onClick={props.onClose} |
| 126 | 148 | aria-label={t("nav.close")} |
| 127 | 149 | class="topbar-control flex h-8 w-8 items-center justify-center rounded-md outline-hidden focus-visible:ring-2 focus-visible:ring-ring" |
src/components/layout/mobile-tab-bar.tsxmodified+1 -0
| @@ -47,6 +47,7 @@ export function MobileTabBar(props: { onMenu: () => void }) { | ||
| 47 | 47 | </For> |
| 48 | 48 | <li class="min-w-0"> |
| 49 | 49 | <button |
| 50 | + id="mobile-menu-trigger" | |
| 50 | 51 | type="button" |
| 51 | 52 | aria-label={t("nav.menu")} |
| 52 | 53 | class="flex h-full w-full flex-col items-center justify-center gap-1 px-1 text-[10px] font-medium text-muted-foreground" |
src/components/layout/sidebar-account.tsxmodified+1 -1
| @@ -53,7 +53,7 @@ export function SidebarAccount(props: { collapsed?: boolean; onLogout: () => voi | ||
| 53 | 53 | <DropdownMenuTrigger |
| 54 | 54 | class={cn( |
| 55 | 55 | "flex w-full items-center text-left outline-hidden transition-colors", |
| 56 | - "focus-visible:ring-2 focus-visible:ring-ring dark:focus-visible:ring-white/30", | |
| 56 | + "focus-visible:ring-2 focus-visible:ring-ring", | |
| 57 | 57 | props.collapsed |
| 58 | 58 | ? "h-9 justify-center rounded-md px-0 text-foreground hover:bg-muted/70 data-expanded:bg-muted/70 dark:text-white dark:hover:bg-white/8 dark:data-expanded:bg-white/8" |
| 59 | 59 | : "h-10 gap-2 rounded-md px-2 text-foreground hover:bg-muted/70 data-expanded:bg-muted/70 dark:text-white dark:hover:bg-white/8 dark:data-expanded:bg-white/8", |
src/components/ui/badge.tsxmodified+1 -1
| @@ -4,7 +4,7 @@ import { splitProps } from "solid-js"; | ||
| 4 | 4 | import { cn } from "@/lib/cn"; |
| 5 | 5 | |
| 6 | 6 | const badgeVariants = cva( |
| 7 | - "inline-flex h-5 min-h-5 items-center rounded-full border px-2 text-xs font-semibold leading-none transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring/70 focus:ring-offset-1", | |
| 7 | + "inline-flex h-5 min-h-5 items-center rounded-full border px-2 text-xs font-semibold leading-none transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-1", | |
| 8 | 8 | { |
| 9 | 9 | variants: { |
| 10 | 10 | variant: { |
src/components/ui/button.tsxmodified+1 -1
| @@ -4,7 +4,7 @@ import { type ComponentProps, type ValidComponent, splitProps } from "solid-js"; | ||
| 4 | 4 | import { cn } from "@/lib/cn"; |
| 5 | 5 | |
| 6 | 6 | export const buttonVariants = cva( |
| 7 | - "inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/75 focus-visible:ring-offset-1 focus-visible:ring-offset-background active:scale-[0.98] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", | |
| 7 | + "inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background active:scale-[0.98] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", | |
| 8 | 8 | { |
| 9 | 9 | variants: { |
| 10 | 10 | variant: { |
src/components/ui/combobox.tsxmodified+1 -1
| @@ -16,7 +16,7 @@ export function ComboboxControl<T extends ValidComponent = "div">( | ||
| 16 | 16 | <ComboboxPrimitive.Control |
| 17 | 17 | class={cn( |
| 18 | 18 | "relative flex h-9 w-full items-center rounded-md border border-input bg-background/90 shadow-sm transition-all", |
| 19 | - "hover:border-ring/45 focus-within:ring-2 focus-within:ring-ring/70 focus-within:ring-offset-1 data-disabled:cursor-not-allowed data-disabled:opacity-50", | |
| 19 | + "hover:border-ring/45 focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-1 data-disabled:cursor-not-allowed data-disabled:opacity-50", | |
| 20 | 20 | local.class, |
| 21 | 21 | )} |
| 22 | 22 | {...rest} |
src/components/ui/date-picker.tsxmodified+4 -4
| @@ -146,11 +146,11 @@ export function DatePicker(props: { | ||
| 146 | 146 | on:pointerdown={(e) => e.stopPropagation()} |
| 147 | 147 | > |
| 148 | 148 | <div class="mb-3 flex items-center justify-between gap-2"> |
| 149 | - <button type="button" class="inline-flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70" onClick={() => moveMonth(-1)}> | |
| 149 | + <button type="button" class="inline-flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring" onClick={() => moveMonth(-1)}> | |
| 150 | 150 | <IconChevronLeft class="h-4 w-4" /> |
| 151 | 151 | </button> |
| 152 | 152 | <p class="min-w-0 truncate px-2 text-sm font-semibold capitalize">{monthLabel()}</p> |
| 153 | - <button type="button" class="inline-flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70" onClick={() => moveMonth(1)}> | |
| 153 | + <button type="button" class="inline-flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring" onClick={() => moveMonth(1)}> | |
| 154 | 154 | <IconChevronRight class="h-4 w-4" /> |
| 155 | 155 | </button> |
| 156 | 156 | </div> |
| @@ -165,7 +165,7 @@ export function DatePicker(props: { | ||
| 165 | 165 | <button |
| 166 | 166 | type="button" |
| 167 | 167 | class={cn( |
| 168 | - "inline-flex h-9 items-center justify-center rounded-md border border-transparent p-0 text-xs font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70", | |
| 168 | + "inline-flex h-9 items-center justify-center rounded-md border border-transparent p-0 text-xs font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring", | |
| 169 | 169 | isSameDay(today, day()) && "border-primary/50 text-primary", |
| 170 | 170 | sameDay(selected(), day()) && "border-primary bg-primary text-primary-foreground shadow-xs hover:bg-primary/90 hover:text-primary-foreground", |
| 171 | 171 | )} |
| @@ -183,7 +183,7 @@ export function DatePicker(props: { | ||
| 183 | 183 | </div> |
| 184 | 184 | <button |
| 185 | 185 | type="button" |
| 186 | - class="mt-2 inline-flex h-9 w-full items-center justify-center rounded-md border bg-background px-3 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70" | |
| 186 | + class="mt-2 inline-flex h-9 w-full items-center justify-center rounded-md border bg-background px-3 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring" | |
| 187 | 187 | onClick={(event) => { |
| 188 | 188 | event.stopPropagation(); |
| 189 | 189 | pick(today); |
src/components/ui/dialog.tsxmodified+1 -1
| @@ -37,7 +37,7 @@ export function DialogContent<T extends ValidComponent = "div">( | ||
| 37 | 37 | > |
| 38 | 38 | <DialogPrimitive.CloseButton |
| 39 | 39 | type="button" |
| 40 | - class="absolute right-4 top-4 z-10 inline-flex h-8 w-8 items-center justify-center rounded-sm text-muted-foreground transition-all hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2" | |
| 40 | + class="absolute right-4 top-4 z-10 inline-flex h-8 w-8 items-center justify-center rounded-sm text-muted-foreground transition-all hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2" | |
| 41 | 41 | aria-label="Close" |
| 42 | 42 | > |
| 43 | 43 | <IconX class="h-4 w-4" /> |
src/components/ui/input.tsxmodified+1 -1
| @@ -9,7 +9,7 @@ export function Input(props: InputProps) { | ||
| 9 | 9 | return ( |
| 10 | 10 | <input |
| 11 | 11 | class={cn( |
| 12 | - "flex h-9 w-full rounded-md border border-input bg-surface-base px-3 py-1 text-base shadow-sm transition-all file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-text-placeholder hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-1 focus-visible:ring-offset-background aria-invalid:border-destructive aria-invalid:ring-destructive/25 disabled:cursor-not-allowed disabled:bg-surface-tint disabled:text-muted-foreground disabled:opacity-70 md:text-sm", | |
| 12 | + "flex h-9 w-full rounded-md border border-input bg-surface-base px-3 py-1 text-base shadow-sm transition-all file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-text-placeholder hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background aria-invalid:border-destructive aria-invalid:ring-destructive disabled:cursor-not-allowed disabled:bg-surface-tint disabled:text-muted-foreground disabled:opacity-70 md:text-sm", | |
| 13 | 13 | local.class, |
| 14 | 14 | )} |
| 15 | 15 | {...rest} |
src/components/ui/select.tsxmodified+2 -2
| @@ -34,7 +34,7 @@ export function DropdownSelect<T extends string | number = string>(props: Dropdo | ||
| 34 | 34 | <DropdownMenuTrigger |
| 35 | 35 | disabled={props.disabled} |
| 36 | 36 | class={cn( |
| 37 | - "inline-flex h-8 items-center justify-between gap-2.5 rounded-lg border border-border/70 bg-muted/40 px-2.5 text-[13px] font-medium text-foreground transition-all hover:border-border hover:bg-muted active:scale-[0.98] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50", | |
| 37 | + "inline-flex h-8 items-center justify-between gap-2.5 rounded-lg border border-border/70 bg-muted/40 px-2.5 text-[13px] font-medium text-foreground transition-all hover:border-border hover:bg-muted active:scale-[0.98] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50", | |
| 38 | 38 | props.triggerClass, |
| 39 | 39 | props.class, |
| 40 | 40 | )} |
| @@ -91,7 +91,7 @@ export function Select(props: SelectProps) { | ||
| 91 | 91 | <select |
| 92 | 92 | class={cn( |
| 93 | 93 | "flex h-9 w-full appearance-none rounded-md border border-input bg-background/90 py-2 pl-3 pr-9 text-sm text-foreground shadow-sm transition-all", |
| 94 | - "hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-1", | |
| 94 | + "hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1", | |
| 95 | 95 | "disabled:cursor-not-allowed disabled:opacity-50 [&>option]:bg-popover [&>option]:text-popover-foreground [&>option]:py-1.5", |
| 96 | 96 | local.class, |
| 97 | 97 | )} |
src/components/ui/side-panel.tsxmodified+1 -1
| @@ -65,7 +65,7 @@ export function SidePanel( | ||
| 65 | 65 | </DialogPrimitive.Description> |
| 66 | 66 | )} |
| 67 | 67 | </div> |
| 68 | - <DialogPrimitive.CloseButton class="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70"> | |
| 68 | + <DialogPrimitive.CloseButton class="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"> | |
| 69 | 69 | <IconX class="h-4 w-4" /> |
| 70 | 70 | </DialogPrimitive.CloseButton> |
| 71 | 71 | </div> |
src/components/ui/tabs.tsxmodified+1 -1
| @@ -30,7 +30,7 @@ export function TabsTrigger<T extends ValidComponent = "button">( | ||
| 30 | 30 | return ( |
| 31 | 31 | <TabsPrimitive.Trigger |
| 32 | 32 | class={cn( |
| 33 | - "group inline-flex h-8 shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-lg border border-transparent px-3 text-sm font-medium text-muted-foreground transition-[background-color,border-color,box-shadow,color] duration-200 hover:bg-muted/70 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-selected:border-border data-selected:bg-surface-base data-selected:text-foreground data-selected:shadow-xs", | |
| 33 | + "group inline-flex h-8 shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-lg border border-transparent px-3 text-sm font-medium text-muted-foreground transition-[background-color,border-color,box-shadow,color] duration-200 hover:bg-muted/70 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-selected:border-border data-selected:bg-surface-base data-selected:text-foreground data-selected:shadow-xs", | |
| 34 | 34 | local.class, |
| 35 | 35 | )} |
| 36 | 36 | {...rest} |
src/components/ui/textarea.tsxmodified+1 -1
| @@ -9,7 +9,7 @@ export function Textarea(props: TextareaProps) { | ||
| 9 | 9 | return ( |
| 10 | 10 | <textarea |
| 11 | 11 | class={cn( |
| 12 | - "flex min-h-15 w-full rounded-md border border-input bg-background/90 px-3 py-2 text-base shadow-sm transition-all placeholder:text-muted-foreground/80 hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", | |
| 12 | + "flex min-h-15 w-full rounded-md border border-input bg-background/90 px-3 py-2 text-base shadow-sm transition-all placeholder:text-muted-foreground/80 hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", | |
| 13 | 13 | local.class, |
| 14 | 14 | )} |
| 15 | 15 | {...rest} |
src/index.cssmodified+1 -5
| @@ -135,10 +135,6 @@ | ||
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | -@utility focus-ring { | |
| 139 | - @apply focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/75 focus-visible:ring-offset-1 focus-visible:ring-offset-background; | |
| 140 | -} | |
| 141 | - | |
| 142 | 138 | @utility topbar-control { |
| 143 | 139 | @apply border border-border/70 bg-transparent text-muted-foreground transition-colors hover:border-border hover:bg-muted/60 hover:text-foreground; |
| 144 | 140 | } |
| @@ -394,7 +390,7 @@ | ||
| 394 | 390 | --destructive-foreground: 0 0% 100%; |
| 395 | 391 | --border: var(--border-hairline); |
| 396 | 392 | --input: var(--border-line); |
| 397 | - --ring: var(--accent-light, var(--brand)); | |
| 393 | + --ring: var(--accent-light, var(--brand-ink)); | |
| 398 | 394 | --radius: 0.5rem; |
| 399 | 395 | --success: 137 63% 39%; |
| 400 | 396 | --warning: 38 92% 50%; |
src/pages/dashboard-page.tsxmodified+1 -1
| @@ -648,7 +648,7 @@ function DashboardContent() { | ||
| 648 | 648 | value={searchInput()} |
| 649 | 649 | onInput={(event) => onSearchInput(event.currentTarget.value)} |
| 650 | 650 | placeholder={t("dashboard.hero.searchPlaceholder")} |
| 651 | - class="h-[46px] w-full rounded-lg border border-border-line bg-surface-base pl-11 pr-4 text-sm text-text-default shadow-sm placeholder:text-text-placeholder focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70" | |
| 651 | + class="h-[46px] w-full rounded-lg border border-border-line bg-surface-base pl-11 pr-4 text-sm text-text-default shadow-sm placeholder:text-text-placeholder focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring" | |
| 652 | 652 | /> |
| 653 | 653 | <Show when={searchQuery() && searchResults()}> |
| 654 | 654 | <div class="absolute left-0 right-0 top-[calc(100%+6px)] z-10 rounded-lg border border-border-line bg-surface-base py-1 text-left shadow-md"> |