|
|
|
|
/* ── Provider — variant-shared base ─────────────────────────────────────── */
|
|
|
|
|
|
|
|
|
|
[data-checkbox] {
|
|
|
|
|
--_checkbox-box-size: var(--checkbox-size-md-box-size);
|
|
|
|
|
--_checkbox-indicator-size: var(--checkbox-size-md-indicator-size);
|
|
|
|
|
--_checkbox-indicator-stroke: var(--checkbox-size-md-indicator-stroke);
|
feat(eidos): TSC v2.2 (parts + composition) + universal theming coverage
Token Scope Contract universal — no más excepciones arquitectónicas.
Los 3 componentes que vivían fuera de TSC v2.1 (select, avatar,
toggle-group) ahora están dentro del contrato via dos extensiones nuevas.
TSC v2.2 extensiones (lib/config-types.ts + render-css.ts + config.ts):
- `parts: readonly string[]` en RecipeTokenMultiDeclaration — emite
selectores comma-separados (`[data-{c}-x], [data-{c}-y]`) para
componentes con data-color cascadeado per-part. Consumer: select.
- `composition: { foreignRecipe: { targetSelector, tokens } }` sibling
key — overrides cross-recipe scoped a la cascade del host. Consumer:
toggle-group modifica `--toggle-palette-*` en sus items.
Migraciones:
- select: 3 private `_accent-{track,border,text}` con parts: ['trigger',
'content'] + 7 cascades color:X each. Removed orphan `_accent-solid`
(CSS no consumía).
- avatar: 6 tokens via composite scopes `['variant:X', 'color:Y']` con
matrix helper inline. Badge usa parts: ['badge']. Reemplaza 24 bloques
CSS × 2 partes.
- toggle-group: composition block con 8 palette tokens × 4 colors.
Reemplaza 4 bloques CSS per-color.
Bug toggle-group post-composition (encontrado y arreglado):
Tras la composition migration, el cascade del toggle-group seguía roto
porque los tokens derivados (`--toggle-solid-on-bg`, `--toggle-outline-fg`,
etc.) viven en scope `[data-toggle]`. El `[data-toggle-group-item]` es
sibling (no descendant), así que `var(--toggle-solid-on-bg)` resolvía
undefined. Fix: inlined derivation expressions directamente en
`[data-toggle-group-item]` y sus variant cascades (solid/outline/ghost),
referenciando palette tokens en su propio scope local.
Validador + emisor + contract:
- `validateRecipeComposition` valida el shape `{ targetSelector, tokens }`
y rechaza composition entries con scope='root'.
- `stripCompositionKey` + `emitComposition` separan el pipeline.
- `appendRecipeContractTokens` skip-list para `composition` (no aparece
como fake `--{c}-composition` knob).
- `tokenKeys`/`tokenEntries` helpers en recipe-css-contract.test.ts
filtran composition en todos los iteradores.
Documentación:
- THEMING.md §18 reescrito como "Cobertura universal de TSC". §7
extendido con subsecciones "Multi-part scope" y "Cross-recipe
composition" + ejemplos completos. TOC actualizado.
- eidos/README.md tabla de referencia ampliada con TSC v2.2 + §18.
- CLAUDE.md gana hand-off "2026-05-27 #5" (TSC v2.2 + cobertura universal).
- CONTINUE.md reescrito al estado actual de la sesión.
Working tree también incluye sprint Words en paralelo (multiple authors):
slash menu, find/replace regex, code language picker, table audit,
toolbar family menu, code highlight engine.
Tests: 786/786 pass en src/uix/{eidos,morfo,soma,sema}. `npm run check`:
6 errores pre-existentes (lib/_demo, soma/components/internal,
web/routes/active) no relacionados.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 months ago
|
|
|
|
|
|
|
|
/* `--_checkbox-palette-*` are private TSC tokens emitted by the
|
|
|
|
|
* generator from `lib/recipes/base.ts > checkbox._palette-*`.
|
|
|
|
|
* Per-color cascade is config-owned via `declarations[]`. */
|
|
|
|
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
inline-size: var(--_checkbox-box-size);
|
|
|
|
|
block-size: var(--_checkbox-box-size);
|
|
|
|
|
padding: 0;
|
|
|
|
|
border: var(--checkbox-border-width) solid var(--checkbox-border-off);
|
|
|
|
|
border-radius: var(--checkbox-radius);
|
|
|
|
|
background: var(--checkbox-bg-off);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
outline: none;
|
|
|
|
|
transition:
|
|
|
|
|
background var(--checkbox-transition-duration) var(--checkbox-transition-ease),
|
|
|
|
|
border-color var(--checkbox-transition-duration) var(--checkbox-transition-ease),
|
|
|
|
|
box-shadow var(--checkbox-transition-duration) var(--checkbox-transition-ease),
|
|
|
|
|
opacity var(--checkbox-transition-duration) var(--checkbox-transition-ease);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Sizes ──────────────────────────────────────────────────────────────── */
|
|
|
|
|
|
eidos: theming fixes + size/variant parity batch + docs
- theme: add surface.muted + content.muted to color contract (neutral-3
+ neutral-10). Plugs 17 broken --color-content-muted and 3 broken
--color-surface-muted references in recipes/components.
- form.css: fix --color-neutral-element-hover typo → --color-neutral-hover.
- archetypes.css + events.css: replace raw hsl/rgba indigo with
color-mix(var(--color-primary-solid) …) — no raw colors left in eidos.
- combobox dark scrollbar: unscope ::-webkit-scrollbar rules in uix.css
and duplicate --uix-line on :root + :root[data-mode='dark'] so portaled
overlays (Combobox listbox, Popover, Dialog, Drawer) inherit the theme.
- sizes: 20 components expand from sm/md/lg to xs..xl (form controls,
text inputs, progress/meter, field/form) or xs..lg (nav controls:
breadcrumb, pagination, tag-group, toolbar). Composite panels keep
sm/md/lg deliberately.
- variants: field + toolbar drop arbitrary ControlVariant narrowings;
both expose all 3 (surface | outline | ghost) with new outline CSS.
- pagination demo: disambiguate siblingCount/boundaryCount as "per side"
in label + API table (Radix/MUI convention).
- docs: CHECKLIST §C-2.6 (contract token presence) + §D-7.4 (chip parity)
+ §D-7.5 (size category) added. DEMO_AUTHORING §12.7 (chip parity) +
§12.8 (size category cheatsheet) added. eidos/README +
active_architecture.md sync texts/migration nomenclature.
- PENDIENTES.md: normas N-1..N-5 implantadas en esta sesión.
Verification: 88/88 eidos tests, 0 type errors, 67/67 component:audit PASS.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 months ago
|
|
|
[data-checkbox][data-size='xs'] {
|
|
|
|
|
--_checkbox-box-size: var(--checkbox-size-xs-box-size);
|
|
|
|
|
--_checkbox-indicator-size: var(--checkbox-size-xs-indicator-size);
|
|
|
|
|
--_checkbox-indicator-stroke: var(--checkbox-size-xs-indicator-stroke);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-size='sm'] {
|
|
|
|
|
--_checkbox-box-size: var(--checkbox-size-sm-box-size);
|
|
|
|
|
--_checkbox-indicator-size: var(--checkbox-size-sm-indicator-size);
|
|
|
|
|
--_checkbox-indicator-stroke: var(--checkbox-size-sm-indicator-stroke);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-size='md'] {
|
|
|
|
|
--_checkbox-box-size: var(--checkbox-size-md-box-size);
|
|
|
|
|
--_checkbox-indicator-size: var(--checkbox-size-md-indicator-size);
|
|
|
|
|
--_checkbox-indicator-stroke: var(--checkbox-size-md-indicator-stroke);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-size='lg'] {
|
|
|
|
|
--_checkbox-box-size: var(--checkbox-size-lg-box-size);
|
|
|
|
|
--_checkbox-indicator-size: var(--checkbox-size-lg-indicator-size);
|
|
|
|
|
--_checkbox-indicator-stroke: var(--checkbox-size-lg-indicator-stroke);
|
|
|
|
|
}
|
|
|
|
|
|
eidos: theming fixes + size/variant parity batch + docs
- theme: add surface.muted + content.muted to color contract (neutral-3
+ neutral-10). Plugs 17 broken --color-content-muted and 3 broken
--color-surface-muted references in recipes/components.
- form.css: fix --color-neutral-element-hover typo → --color-neutral-hover.
- archetypes.css + events.css: replace raw hsl/rgba indigo with
color-mix(var(--color-primary-solid) …) — no raw colors left in eidos.
- combobox dark scrollbar: unscope ::-webkit-scrollbar rules in uix.css
and duplicate --uix-line on :root + :root[data-mode='dark'] so portaled
overlays (Combobox listbox, Popover, Dialog, Drawer) inherit the theme.
- sizes: 20 components expand from sm/md/lg to xs..xl (form controls,
text inputs, progress/meter, field/form) or xs..lg (nav controls:
breadcrumb, pagination, tag-group, toolbar). Composite panels keep
sm/md/lg deliberately.
- variants: field + toolbar drop arbitrary ControlVariant narrowings;
both expose all 3 (surface | outline | ghost) with new outline CSS.
- pagination demo: disambiguate siblingCount/boundaryCount as "per side"
in label + API table (Radix/MUI convention).
- docs: CHECKLIST §C-2.6 (contract token presence) + §D-7.4 (chip parity)
+ §D-7.5 (size category) added. DEMO_AUTHORING §12.7 (chip parity) +
§12.8 (size category cheatsheet) added. eidos/README +
active_architecture.md sync texts/migration nomenclature.
- PENDIENTES.md: normas N-1..N-5 implantadas en esta sesión.
Verification: 88/88 eidos tests, 0 type errors, 67/67 component:audit PASS.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 months ago
|
|
|
[data-checkbox][data-size='xl'] {
|
|
|
|
|
--_checkbox-box-size: var(--checkbox-size-xl-box-size);
|
|
|
|
|
--_checkbox-indicator-size: var(--checkbox-size-xl-indicator-size);
|
|
|
|
|
--_checkbox-indicator-stroke: var(--checkbox-size-xl-indicator-stroke);
|
|
|
|
|
}
|
|
|
|
|
|
feat(eidos): TSC v2.2 (parts + composition) + universal theming coverage
Token Scope Contract universal — no más excepciones arquitectónicas.
Los 3 componentes que vivían fuera de TSC v2.1 (select, avatar,
toggle-group) ahora están dentro del contrato via dos extensiones nuevas.
TSC v2.2 extensiones (lib/config-types.ts + render-css.ts + config.ts):
- `parts: readonly string[]` en RecipeTokenMultiDeclaration — emite
selectores comma-separados (`[data-{c}-x], [data-{c}-y]`) para
componentes con data-color cascadeado per-part. Consumer: select.
- `composition: { foreignRecipe: { targetSelector, tokens } }` sibling
key — overrides cross-recipe scoped a la cascade del host. Consumer:
toggle-group modifica `--toggle-palette-*` en sus items.
Migraciones:
- select: 3 private `_accent-{track,border,text}` con parts: ['trigger',
'content'] + 7 cascades color:X each. Removed orphan `_accent-solid`
(CSS no consumía).
- avatar: 6 tokens via composite scopes `['variant:X', 'color:Y']` con
matrix helper inline. Badge usa parts: ['badge']. Reemplaza 24 bloques
CSS × 2 partes.
- toggle-group: composition block con 8 palette tokens × 4 colors.
Reemplaza 4 bloques CSS per-color.
Bug toggle-group post-composition (encontrado y arreglado):
Tras la composition migration, el cascade del toggle-group seguía roto
porque los tokens derivados (`--toggle-solid-on-bg`, `--toggle-outline-fg`,
etc.) viven en scope `[data-toggle]`. El `[data-toggle-group-item]` es
sibling (no descendant), así que `var(--toggle-solid-on-bg)` resolvía
undefined. Fix: inlined derivation expressions directamente en
`[data-toggle-group-item]` y sus variant cascades (solid/outline/ghost),
referenciando palette tokens en su propio scope local.
Validador + emisor + contract:
- `validateRecipeComposition` valida el shape `{ targetSelector, tokens }`
y rechaza composition entries con scope='root'.
- `stripCompositionKey` + `emitComposition` separan el pipeline.
- `appendRecipeContractTokens` skip-list para `composition` (no aparece
como fake `--{c}-composition` knob).
- `tokenKeys`/`tokenEntries` helpers en recipe-css-contract.test.ts
filtran composition en todos los iteradores.
Documentación:
- THEMING.md §18 reescrito como "Cobertura universal de TSC". §7
extendido con subsecciones "Multi-part scope" y "Cross-recipe
composition" + ejemplos completos. TOC actualizado.
- eidos/README.md tabla de referencia ampliada con TSC v2.2 + §18.
- CLAUDE.md gana hand-off "2026-05-27 #5" (TSC v2.2 + cobertura universal).
- CONTINUE.md reescrito al estado actual de la sesión.
Working tree también incluye sprint Words en paralelo (multiple authors):
slash menu, find/replace regex, code language picker, table audit,
toolbar family menu, code highlight engine.
Tests: 786/786 pass en src/uix/{eidos,morfo,soma,sema}. `npm run check`:
6 errores pre-existentes (lib/_demo, soma/components/internal,
web/routes/active) no relacionados.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 months ago
|
|
|
/* ── Color subset cascade — config-owned by recipes/base.ts ──────────────
|
|
|
|
|
* Subset: primary | secondary | neutral | affirm. Per-color override
|
|
|
|
|
* blocks emitted by the generator at `[data-checkbox][data-color='X']`. */
|
|
|
|
|
|
|
|
|
|
/* ── Hover / focus ─────────────────────────────────────────────────────── */
|
|
|
|
|
|
|
|
|
|
[data-checkbox]:hover:not([data-disabled]):not([data-readonly]) {
|
|
|
|
|
background: var(--checkbox-bg-off-hover);
|
|
|
|
|
border-color: var(--checkbox-border-off-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-checkbox]:focus-visible {
|
|
|
|
|
box-shadow: var(--checkbox-focus-ring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── States: checked / indeterminate ─────────────────────────────────────
|
|
|
|
|
* Solid variant (default): filled with the colour palette. */
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-variant='solid'][data-state='checked'],
|
|
|
|
|
[data-checkbox][data-variant='solid'][data-state='indeterminate'],
|
|
|
|
|
[data-checkbox]:not([data-variant])[data-state='checked'],
|
|
|
|
|
[data-checkbox]:not([data-variant])[data-state='indeterminate'] {
|
|
|
|
|
background: var(--_checkbox-palette-solid);
|
|
|
|
|
border-color: var(--_checkbox-palette-solid);
|
|
|
|
|
--_checkbox-palette-text: var(--color-content-on-solid);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-variant='solid'][data-state='checked']:hover:not([data-disabled]):not([data-readonly]),
|
|
|
|
|
[data-checkbox][data-variant='solid'][data-state='indeterminate']:hover:not([data-disabled]):not([data-readonly]),
|
|
|
|
|
[data-checkbox]:not([data-variant])[data-state='checked']:hover:not([data-disabled]):not([data-readonly]),
|
|
|
|
|
[data-checkbox]:not([data-variant])[data-state='indeterminate']:hover:not([data-disabled]):not([data-readonly]) {
|
|
|
|
|
background: var(--_checkbox-palette-solid-hover);
|
|
|
|
|
border-color: var(--_checkbox-palette-solid-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Outline variant: transparent fill, border carries the active colour. */
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-variant='outline'][data-state='checked'],
|
|
|
|
|
[data-checkbox][data-variant='outline'][data-state='indeterminate'] {
|
|
|
|
|
background: transparent;
|
|
|
|
|
border-color: var(--_checkbox-palette-solid);
|
|
|
|
|
--_checkbox-palette-text: var(--_checkbox-palette-solid);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Ghost variant: minimal chrome, faint tint when active. */
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-variant='ghost'] {
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-variant='ghost']:hover:not([data-disabled]):not([data-readonly]) {
|
|
|
|
|
background: color-mix(in srgb, var(--_checkbox-palette-solid) 8%, transparent);
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-variant='ghost'][data-state='checked'],
|
|
|
|
|
[data-checkbox][data-variant='ghost'][data-state='indeterminate'] {
|
|
|
|
|
background: color-mix(in srgb, var(--_checkbox-palette-solid) 18%, transparent);
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
--_checkbox-palette-text: var(--_checkbox-palette-solid);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Invalid state (form validation) ────────────────────────────────────
|
|
|
|
|
* Threat-coloured border across ALL variants. Wins over the active color
|
|
|
|
|
* because invalid signals priority. */
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-invalid] {
|
|
|
|
|
border-color: var(--color-threat-element);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-invalid]:focus-visible {
|
|
|
|
|
box-shadow: 0 0 0 2px var(--color-surface-default), 0 0 0 4px var(--color-threat-element);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Disabled / readonly ────────────────────────────────────────────────── */
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-disabled] {
|
|
|
|
|
background: var(--checkbox-bg-disabled);
|
|
|
|
|
border-color: var(--checkbox-border-disabled);
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
opacity: var(--checkbox-disabled-opacity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-readonly] {
|
|
|
|
|
cursor: default;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Indicator ──────────────────────────────────────────────────────────── */
|
|
|
|
|
|
|
|
|
|
[data-checkbox-indicator] {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
inline-size: var(--_checkbox-indicator-size);
|
|
|
|
|
block-size: var(--_checkbox-indicator-size);
|
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
color: var(--_checkbox-palette-text);
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* SVG glyph from `$uix/eidos/components/svg`. Uses currentColor so it
|
|
|
|
|
* inherits the indicator's colour, which is set per-variant above. */
|
|
|
|
|
[data-checkbox-indicator] svg {
|
|
|
|
|
inline-size: 100%;
|
|
|
|
|
block-size: 100%;
|
|
|
|
|
stroke-width: var(--_checkbox-indicator-stroke);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Animation: stroke-dasharray draw on check + dash grow ─────────────── */
|
|
|
|
|
|
|
|
|
|
[data-checkbox-indicator] svg[data-svg='check'] path,
|
|
|
|
|
[data-checkbox-indicator] svg[data-svg='dash'] path {
|
|
|
|
|
stroke-dasharray: 100;
|
|
|
|
|
stroke-dashoffset: 100;
|
feat(eidos): canonize theming scales + tokenize magic numbers
Audit-driven canonization of the eidos theming layer: a canonical scale that
components bypass with literals drifts into N variants. Every axis is now
retunable-by-theme AND consumed via token, never a bare literal.
Bloque A/B (scales): --blur-* (Tailwind-aligned, depth planes consume it);
inner-shadow --shadow-inset-* (mode-aware) for the recessed plane; gradient
angle/named tokens; --breakpoint-* sourced from ActiveDom (runtime, dev-settable)
+ container queries; opacity dual numeric+semantic scale; border-width
none/thin/medium/thick/heavy (adds real 3px); tracking caps/widest. Fase 7:
3 size archetypes documented + coherence guard (no px/rem in recipe
font-size/icon-size).
Bloque C (magic numbers): z-index 80/50/99 (combobox/nav-menu/drag-drop) ->
recipe content-z/preview-z tokens (overlay micro-band soma mirrors); on-scale
durations -> var(--duration-*) (dialog fast/slow, card slow); 12 single
border/ring widths -> var(--border-width-*), value-preserving. Off-scale kept
only as justified recipe tokens (continuous spinner/loading periods, sub-fast
press). Self-contained dimensional scales (avatar ring, ring-thickness) left whole.
Docs: THEMING.md SS35 + SS6 + SS29, THEMING_NOTES, README, TSC. Excludes
words/palabras/chronos (active dev tracks).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
4 months ago
|
|
|
transition: stroke-dashoffset var(--checkbox-stroke-duration) var(--checkbox-stroke-ease);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-state='checked'] [data-checkbox-indicator] svg[data-svg='check'] path,
|
|
|
|
|
[data-checkbox][data-state='indeterminate'] [data-checkbox-indicator] svg[data-svg='dash'] path {
|
|
|
|
|
stroke-dashoffset: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Disabled indicator colour ──────────────────────────────────────────── */
|
|
|
|
|
|
|
|
|
|
[data-checkbox][data-disabled] [data-checkbox-indicator] {
|
|
|
|
|
color: var(--checkbox-indicator-color-disabled);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Group ──────────────────────────────────────────────────────────────── */
|
|
|
|
|
|
|
|
|
|
[data-checkbox-group] {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: var(--checkbox-group-gap);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-checkbox-group][data-orientation='horizontal'] {
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Grid layout when `columns` is set on the wrapper. The wrapper publishes
|
|
|
|
|
* `--_checkbox-group-columns` inline + `data-columns` for the selector. */
|
|
|
|
|
|
|
|
|
|
[data-checkbox-group][data-columns] {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(var(--_checkbox-group-columns, 2), minmax(0, 1fr));
|
|
|
|
|
align-items: start;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-checkbox-group-label] {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
width: fit-content;
|
|
|
|
|
font-family: var(--checkbox-group-label-font-family);
|
|
|
|
|
font-size: var(--checkbox-group-label-font-size);
|
|
|
|
|
font-weight: var(--checkbox-group-label-font-weight);
|
|
|
|
|
line-height: var(--checkbox-group-label-line-height);
|
|
|
|
|
color: var(--checkbox-group-label-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-checkbox-group-label][data-disabled] {
|
|
|
|
|
color: var(--checkbox-group-label-color-disabled);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Reduced motion ─────────────────────────────────────────────────────────
|
|
|
|
|
* Honour the user's OS preference: skip the stroke draw + state
|
|
|
|
|
* transition. Indicator just snaps in / out. */
|
|
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
|
[data-checkbox] {
|
|
|
|
|
transition: none;
|
|
|
|
|
}
|
|
|
|
|
[data-checkbox-indicator] svg path {
|
|
|
|
|
transition: none;
|
|
|
|
|
}
|
|
|
|
|
}
|