fix(design): claim audit part 1b — whole-row switches, the field-family edge, state-layer hovers, icon links, reason-disabled controls, 24/44 targets (E28)
- F12 (owner: A): SwitchRow, the whole settings row toggles; a Config boolean toggles from its title and hint (a label pointed at the switch). - F14 (owner: B): the form dropdown trigger wears the field frame (see-through, the >= 3:1 edge); labelled pills keep the faint edge and the accent-edge hover. DESIGN says so, with log rows. - F6: ~15 bg-card / bg-border / opacity hovers onto the B3 state layer; a lint rule (HOVER_SWAP) refuses the swap, contract-tested. - F10: bare 14px icon links onto IconLink / LinkButton; a local lint rule refuses a glyph-only <a>. - F13: reason-disabled controls are aria-disabled (Users, Channels backfill, Discovery, Scheduler runs, Config tests); FocusSafeButton now swallows the click of a caller's aria-disabled; the Config tests say why while dirty (testDirty, HU/EN). - F5/F11: every control measured live at 24 (mouse) and 44 (coarse) across every page; touch-target is a utility that wins over a caller's min-h-6; link variants carry it too; SegmentedToggle, Tabs, NavRail, menu rows, PriorityStepper, sliders, CheckRow, InnerInput, card links and the rest. - F9: DismissibleChip's label reaches the chip's 24; the Combobox chips are DismissibleChips. - F15: the "+N" / "More..." open state worded as it renders.
This commit is contained in:
@@ -73,13 +73,13 @@ export default function DesignLab() {
|
||||
/>
|
||||
</label>
|
||||
<nav className="flex flex-wrap gap-1 text-xs">
|
||||
<a href="#decided" className="rounded-md px-1.5 py-0.5 text-success hover:bg-card">
|
||||
<a href="#decided" className="rounded-md px-1.5 py-0.5 text-success state-layer">
|
||||
A ✓
|
||||
</a>
|
||||
<a href="#decided-b" className="rounded-md px-1.5 py-0.5 text-success hover:bg-card">
|
||||
<a href="#decided-b" className="rounded-md px-1.5 py-0.5 text-success state-layer">
|
||||
B ✓
|
||||
</a>
|
||||
<a href="#decided-c" className="rounded-md px-1.5 py-0.5 text-success hover:bg-card">
|
||||
<a href="#decided-c" className="rounded-md px-1.5 py-0.5 text-success state-layer">
|
||||
C ✓
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
@@ -18,7 +18,7 @@ import { Checkbox, Slider } from "../components/ui/NativeControls";
|
||||
import { Input, InnerInput } from "../components/ui/Input";
|
||||
import { fieldClass } from "../components/ui/fieldStyles";
|
||||
import { SelectTrigger } from "../components/ui/SelectTrigger";
|
||||
import { Switch } from "../components/ui/form";
|
||||
import { SwitchRow } from "../components/ui/form";
|
||||
|
||||
// E28 S2 · Batch A — controls, DECIDED (owner, 2026-09-24: all six as recommended), rendered with the
|
||||
// batch B decisions that refine them: B1's compact ladder and B3's state layers. Only the chosen
|
||||
@@ -101,10 +101,7 @@ function NativeSet() {
|
||||
<Checkbox defaultChecked />
|
||||
Only unwatched
|
||||
</label>
|
||||
<div className={clsx(row, "justify-between")}>
|
||||
Hide Shorts
|
||||
<Switch checked onChange={() => {}} label="Hide Shorts" />
|
||||
</div>
|
||||
<SwitchRow checked onChange={() => {}} label="Hide Shorts" />
|
||||
<label className="flex flex-col gap-1 px-2 text-sm">
|
||||
Text size
|
||||
<Slider min={90} max={120} defaultValue={102} onChange={() => {}} />
|
||||
|
||||
Reference in New Issue
Block a user