diff --git a/changelog.d/1842-kit-checkbox.md b/changelog.d/1842-kit-checkbox.md new file mode 100644 index 0000000000..7ff6df0bf5 --- /dev/null +++ b/changelog.d/1842-kit-checkbox.md @@ -0,0 +1,4 @@ +- The Visual panel's toggles, the voice settings, the Data Library's + "available only" box and the welcome screen's "Don't show this again" are + now one kit component, `UiCheckbox`, with the same look and behaviour as + before (manjunath22466, samehkhamis, #1842). diff --git a/docs/VUE-MIGRATION.md b/docs/VUE-MIGRATION.md index 26a164b4ae..d6a1eaf26c 100644 --- a/docs/VUE-MIGRATION.md +++ b/docs/VUE-MIGRATION.md @@ -38,7 +38,7 @@ one-panel rule too. Share links continue to record which panels are open. `src/ui/kit/` holds the generic components: `UiRail`, `UiTooltip`, `UiIcon`, `UiButton`, `UiCloseButton`, `UiPanel`, `UiSegmented`, `UiSlider`, `UiChip`, -`UiSelect`, `UiSearchField`, `UiBadge` and `UiEmpty` so far, with more +`UiSelect`, `UiSearchField`, `UiCheckbox`, `UiBadge` and `UiEmpty` so far, with more joining as the controls they serve are converted. One component serves every use of a control, with props for the differences (`UiPanel`'s `sideways`, `glow`, `scroll`), rather than a copy per panel. The components @@ -55,6 +55,7 @@ never copied: | `UiButton` `variant="icon"` | the 22px square glyph button of a panel's collapse toggle | `src/ui/styles/controls.css` | | `UiCloseButton` | a close, dismiss or clear button: a bare glyph (× with `glyph="times"`, the Material `close` symbol with `glyph="icon"`) with no padding, border or background of its own and a pointer; the site's feature class sets size, colour, hover and any surface, and `bare` leaves the look off for a skin that sets its own padding and border | `src/ui/styles/close-button.css` | | `UiSearchField` | a search field: the Material `search` glyph and a search input in a flex row, the input bare (no border or background, free to shrink); the site's feature classes set the frame's size, surface and focus ring and the input's type and outline, and the browser's own cancel button is left to each skin | `src/ui/styles/search-field.css` | +| `UiCheckbox` | a checkbox: a label wrapping a native box and its words in a centred flex row; the box keeps each site's size, margin and accent colour, and the site's feature class sets the row's gap, direction and colour | `src/ui/styles/checkbox.css` | | `UiChip` | the read-only chip (a pill of uppercase mono text); `selected` takes the accent | `src/ui/styles/chip.css` | | `UiEmpty` | the one-line empty state (dim mono text), its hint on a line below | `src/ui/styles/empty-state.css` | | `UiBadge` | the read-only badge (`gev-status-badge`) | `src/ui/styles/status-badge.css` | @@ -120,6 +121,21 @@ focuses the input. The Context search and the Layer Finder's are `UiSearchField`s; the locale picker's combobox, the Omnibar's location field and the Data Library's labelled search are other controls. Its kit rules hold the declarations both search skins had in common, moved rather than copied, and load before them. +`UiCheckbox` is a `