Files
gods-eye-view/src/ui/styles/checkbox.css
T
Sameh KhamisandManjunath Paparaju 2d7b7be890 Vue kit: UiCheckbox for the Visual, voice, Data Library and welcome checkboxes
UiCheckbox is a label wrapping a native checkbox and its words; trailing
puts the box after them, as the Visual panel's rows have it. v-model shows
the value and emits the checked state, and change is emitted with its event;
without a modelValue the box is the browser's own, as the welcome card's
"Don't show this again" is. restore puts the box back to modelValue once a
change has rendered without the owner taking it, which is what the voice
panel's v-checked directive did for a refused preference. Attributes go to
the label; inputId and inputAttrs to the box.

checkbox.css holds the centred flex row, moved out of the two labels that
hold only a checkbox (first-run.css, library.css) and loaded before them.
Each box keeps its skin's size, margin and accent colour. checkboxes.test.mjs
fails if a view writes a checkbox by hand; Story Explore's filters are not
converted yet.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 01:05:12 -08:00

10 lines
437 B
CSS

/* Core's checkboxes are a label wrapping the box and its words, laid out in
* a centred flex row: the kit's UiCheckbox wears it as .ui-checkbox. The rule
* selects one class and loads before the feature stylesheets, so a feature
* rule still sets the row's gap, direction, size and colour. The box,
* .ui-checkbox__input, keeps each skin's size, margin and accent colour. */
.ui-checkbox {
display: flex;
align-items: center;
}