Releases: untemps/svelte-palette
Releases · untemps/svelte-palette
Release list
v6.0.0-beta.2
v6.0.0-beta.1
6.0.0-beta.1 (2026-07-21)
Features
BREAKING CHANGES
- The slot grid is now an ARIA listbox with a roving tabindex, which changes the palette's DOM structure, roles and tab behaviour.
Migrate as follows:
- Root landmark removed. The palette root no longer carries
role="main". Style overrides written against.palette[role="main"]must migrate to.palette[data-palette], and code selecting the root by itsmainrole must use thedata-palette/__palette__hook instead. - Grid layout moved. The flat-mode swatch grid (columns and gaps) is now laid out on
.palette__listboxinstead of.palette__cells, which becomes a flex wrapper. Style overrides targeting the grid via.palette__cellsmust move to.palette__cells > .palette__listbox. - Single tab stop. The grid now exposes a single tab stop (roving tabindex) instead of one per slot.
Tabmoves onto the selected slot (or the first one) and then out of the grid; arrow keys move within it. - Slot snippet contract. Consumers rendering custom
slot/transparentSlotsnippets must forward the providedtabindex(and, for screen-reader parity,role="option"andaria-selected={selected}) onto their own focusable element to join the arrow-key navigation.beforeSlot/afterSlotsnippets now render outside the listbox and must be a plain element (e.g. a<div>, not an<li>).