Changelog
What changed in each release of Chameleon, newest first. Each release shows its highlight and how many changes of each kind it made; open it to read every change.
27.0.0-preview.2
WCAG 2.2 AA contrast in every state of every component, in every theme at standard contrast or higher, and accessibility fixes from a full audit.
Breaking 11 changes need action
- Components take their language from the nearest
langattribute at or above them. Thelocaleattribute and property, and the app configuration'slocale, are removed: writelanginstead. After changing a container'slangat runtime, callrepaintChameleonComponents(). - Data table cells wrap by default, and rows grow to fit, virtualized tables included.
wrap-cellsis removed; settruncate-cellsto keep one line per row. - The data table and data grid have no
filledortonalvariant, and the--ct-table-filled-*and--ct-table-tonal-*tokens are removed. Usesurface, and set its tokens for a colored table. cw-tel-fieldhas no defaultpatternand accepts any phone format. Setpatternanderror-textto restrict it.- A menu, FAB menu or popover opened by hover or focus leaves focus where it was. Enter, Space or an arrow key moves focus in.
- A text-variant field reserves its error line, so it is one line taller. While a field is in error, an element in its
trailing-iconslot is hidden unless it carriesdata-interactive. - In React, a component's
onChangeandonInputhandlers get the component's own element ase.currentTarget, with its real member types:CrCheckboxgives a booleanchecked, a text field a stringvalue. A handler annotatedReact.ChangeEvent<HTMLInputElement>no longer compiles; remove the annotation and let the type be inferred. - In React, a ref's members have the web class's own types: some admit
null, methods such assetRangeTexttake the class's unions instead of any string, and a member such asdisabledno longer acceptsundefined. Narrownullas well asundefined, and pass a value the class accepts. - In Blazor, a toast service call shows its content as text, not HTML. Use the toast's
Overline,SupportingTextand icons for structure. - In Blazor, content written directly inside a component with no default slot, such as
CbTextFieldorCbDialog, throws when the page renders. Move it into the named fragment for its slot, such as<LeadingIcon>. - In Blazor, a field inside an
EditFormshows its bound field's validation message, unless you setErrororErrorText, and an emptyRequiredfield failsValidate(). Remove a separateValidationMessagethat now repeats it.
New 11 additions
- A text field anchoring a menu becomes its combobox: the arrow keys move through the items and Enter chooses one.
cw-selecttakesautocomplete, so browsers can fill it and assistive technology can state its purpose.cw-paginator's built-in text can be replaced:controls-label,first-page-label,previous-page-label,next-page-label,last-page-label,items-per-page-label, andpageStatusFormatterfor the page status.cw-data-tabletakestouch-target, and its touch targets are at least 24px.cw-text-areatakesno-error-line, to leave out the error line on a text area that never validates.cw-toasthas anactionslot, and color tokens for each toast level.- About 160 new tokens for hover, pressed and selected colors, among them per-theme state roles in
--ct-sys-color-*. The color utilities solve a hover and pressed role for every text role, andsolveStatePairis public inchameleon-components-webandchameleon-build-utilities. cw-navtakesmask-content, to clip its content to the shape it paints in every form: the drawer's rounded corners, the bars and the rail.- The docs MCP server is version 1.0.0, registered as
io.chameleonui/mcp. - In React, a ref typed with the web component's class, such as
useRef<CwDialog>(null), fits the matchingCr*component'sref. - In Blazor,
ShowToast(ToastItem)shows a toast with every field the web component takes, among themSupportingText,DensityandWaveShape.
Changed 8 changes
- Text and icons hold WCAG 1.4.3 and 1.4.11 contrast at rest, hover, focus, pressed and selected, in every theme at standard contrast or higher. Where Material's own tokens fail, Chameleon departs from them.
- The state layer and press ripple follow Material 3's current timings and opacities, and paint under the label and icon.
- A field in error shows an error icon and message, not color alone, and reserves the message line so nothing moves.
- Menus that mark a choice and lists with a selection mode reserve a leading space for a check, so they are wider. A selected or current item shows the check and a bold label; the data grid marks a selected row with a bar.
- A selected switch keeps its handle color under hover, focus and press, and the state handle and icon tokens fall back to the resting ones. Sliders and dials with
tickmarks="none"draw the end stop. - The theme functions write about thirty
--ct-sys-color-<role>-solveddeclarations per theme. Filter onSchemeColorswhere you want only color roles, and regenerate golden files. - A progress indicator with no
aria-labellogs a warning. - The docs MCP server's
check_codecatches more mistakes, each with its fix: anAriaLabelparameter on a Blazor component, which is a plainaria-labelattribute; anaria-labelledbyoraria-describedbyreference that a component cannot follow to an element elsewhere on the page; a select option with no content and noaria-label; and a React ref typed as a plain element or with no initial value.
Fixed 28 fixes
- A slider, dial or range slider given a value just off its step, such as
0.3at a step of0.1, no longer freezes the page. The value settles on the step. - A scroll region's elevation shadows no longer give the scroller around it room to scroll, and an axis with nothing to scroll no longer bounces under a trackpad in Chromium on macOS.
- A slider or dial's
valuereads as a number in its type, so a handler can passe.currentTarget.valuestraight to anumberstate. Settingundefinedstill resets it to the default. - The published type declarations carry Lit's types, so TypeScript projects compile without installing Lit.
- The style configuration's default field density reaches every field; before, a field's own default always won.
- Host attributes no longer break hydration, and Blazor's prerender handoff keeps the components it rendered.
- A keyboard-focused data table or data grid cell scrolls fully into view.
- Tables no longer shift layout when they hydrate.
- FAB menu labels wrap and the list scrolls. The skeleton is announced through a shared status region.
cw-selecthas a combobox structure named by its label, andcw-menucarries its role on the surface only.- A toast's countdown pauses while a pointer is over it, focus is inside it, or the page is hidden, and closing a toast returns focus to where it was.
- A canceled pointer on a slider or dial restores its start value.
- Selected chips, radios and tabs paint their hover and pressed states.
- A slider, dial or range slider fires one
inputper key press or pointer move in every change mode, and releasing the key or pointer commits that move. In Blazor, a bound range slider follows the keyboard in production builds. - A popover with
apply-autofocusfocuses a slotted element that carriesautofocusitself, not only one inside it. - A side nav exactly as tall as its rows no longer scrolls or shows an end shadow.
- In Safari and Firefox, a card's edges land on whole device pixels, and an outlined card draws its bottom border in Safari.
- On a component with squircle corners, the hover and pressed layer takes the same corner shape, in browsers that support
corner-shape. - In React, a component's element type carries the web element's public members, such as
updateCompleteand a number field'svalueAsNumber. - In React, a value callback runs only when its own value moved: moving a range slider's start thumb no longer calls
onEndValueChange. - The React API tab lists the props a value binding adds, such as
onValueChangeanddefaultValue. - In Blazor, an event a component fires during its first update reaches your handler. A data table's
OnRowsChangewas often lost. - In Blazor, an item in a menu's
anchorslot no longer joins the menu's selection, so the menu's item keys stay put. - In Blazor, a component's link to a page inside the app navigates within the app as soon as the page is interactive. A click in the moment after it turned interactive reloaded the whole page.
- In Blazor,
DefaultToFirston an unbound selection chooses the first enabled item, and no longer re-renders forever. - In Blazor, an item's
Valueoutside a selection reaches the element whatever its type, written the same in every culture. - In Blazor, a number too large for its binding leaves the binding unchanged instead of throwing, and a selection ignores a key that names no item.
- The reference docs say that a field's
asyncSinkreceives{ sequence, abortSignal }, and that the theme sheet fromgenerateThemeCssFromHexhas no.theme-lightor.theme-darkclass.
Accessibility
Changed Text and icons hold WCAG 1.4.3 and 1.4.11 contrast at rest, hover, focus, pressed and selected, in every theme at standard contrast or higher. Where Material's own tokens fail, Chameleon departs from them.
AI agents
New The docs MCP server is version 1.0.0, registered asio.chameleonui/mcp.Changed The docs MCP server'scheck_codecatches more mistakes, each with its fix: anAriaLabelparameter on a Blazor component, which is a plainaria-labelattribute; anaria-labelledbyoraria-describedbyreference that a component cannot follow to an element elsewhere on the page; a select option with no content and noaria-label; and a React ref typed as a plain element or with no initial value.
Card
Fixed In Safari and Firefox, a card's edges land on whole device pixels, and an outlined card draws its bottom border in Safari.
Circular progress
Changed A progress indicator with noaria-labellogs a warning.
Data grid
Breaking The data table and data grid have nofilledortonalvariant, and the--ct-table-filled-*and--ct-table-tonal-*tokens are removed. Usesurface, and set its tokens for a colored table.Fixed A keyboard-focused data table or data grid cell scrolls fully into view.Fixed Tables no longer shift layout when they hydrate.
Data table
Breaking Data table cells wrap by default, and rows grow to fit, virtualized tables included.wrap-cellsis removed; settruncate-cellsto keep one line per row.Breaking The data table and data grid have nofilledortonalvariant, and the--ct-table-filled-*and--ct-table-tonal-*tokens are removed. Usesurface, and set its tokens for a colored table.New cw-data-tabletakestouch-target, and its touch targets are at least 24px.Fixed A keyboard-focused data table or data grid cell scrolls fully into view.Fixed Tables no longer shift layout when they hydrate.Fixed In Blazor, an event a component fires during its first update reaches your handler. A data table'sOnRowsChangewas often lost.
Dial
Changed A selected switch keeps its handle color under hover, focus and press, and the state handle and icon tokens fall back to the resting ones. Sliders and dials withtickmarks="none"draw the end stop.Fixed A slider, dial or range slider given a value just off its step, such as0.3at a step of0.1, no longer freezes the page. The value settles on the step.Fixed A slider or dial'svaluereads as a number in its type, so a handler can passe.currentTarget.valuestraight to anumberstate. Settingundefinedstill resets it to the default.Fixed A canceled pointer on a slider or dial restores its start value.Fixed A slider, dial or range slider fires oneinputper key press or pointer move in every change mode, and releasing the key or pointer commits that move. In Blazor, a bound range slider follows the keyboard in production builds.
FAB menu
Breaking A menu, FAB menu or popover opened by hover or focus leaves focus where it was. Enter, Space or an arrow key moves focus in.Fixed FAB menu labels wrap and the list scrolls. The skeleton is announced through a shared status region.
Linear progress
Changed A progress indicator with noaria-labellogs a warning.
Menu
Breaking A menu, FAB menu or popover opened by hover or focus leaves focus where it was. Enter, Space or an arrow key moves focus in.New A text field anchoring a menu becomes its combobox: the arrow keys move through the items and Enter chooses one.Fixed cw-selecthas a combobox structure named by its label, andcw-menucarries its role on the surface only.Fixed In Blazor, an item in a menu'sanchorslot no longer joins the menu's selection, so the menu's item keys stay put.
Navigation
New cw-navtakesmask-content, to clip its content to the shape it paints in every form: the drawer's rounded corners, the bars and the rail.Fixed A side nav exactly as tall as its rows no longer scrolls or shows an end shadow.
Paginator
New cw-paginator's built-in text can be replaced:controls-label,first-page-label,previous-page-label,next-page-label,last-page-label,items-per-page-label, andpageStatusFormatterfor the page status.
Popover
Breaking A menu, FAB menu or popover opened by hover or focus leaves focus where it was. Enter, Space or an arrow key moves focus in.Fixed A popover withapply-autofocusfocuses a slotted element that carriesautofocusitself, not only one inside it.
Range slider
Fixed A slider, dial or range slider given a value just off its step, such as0.3at a step of0.1, no longer freezes the page. The value settles on the step.Fixed A slider, dial or range slider fires oneinputper key press or pointer move in every change mode, and releasing the key or pointer commits that move. In Blazor, a bound range slider follows the keyboard in production builds.Fixed In React, a value callback runs only when its own value moved: moving a range slider's start thumb no longer callsonEndValueChange.
Scroll region
Fixed A scroll region's elevation shadows no longer give the scroller around it room to scroll, and an axis with nothing to scroll no longer bounces under a trackpad in Chromium on macOS.
Select
New cw-selecttakesautocomplete, so browsers can fill it and assistive technology can state its purpose.Fixed cw-selecthas a combobox structure named by its label, andcw-menucarries its role on the surface only.
Skeleton
Fixed FAB menu labels wrap and the list scrolls. The skeleton is announced through a shared status region.
Slider
Changed A selected switch keeps its handle color under hover, focus and press, and the state handle and icon tokens fall back to the resting ones. Sliders and dials withtickmarks="none"draw the end stop.Fixed A slider, dial or range slider given a value just off its step, such as0.3at a step of0.1, no longer freezes the page. The value settles on the step.Fixed A slider or dial'svaluereads as a number in its type, so a handler can passe.currentTarget.valuestraight to anumberstate. Settingundefinedstill resets it to the default.Fixed A canceled pointer on a slider or dial restores its start value.Fixed A slider, dial or range slider fires oneinputper key press or pointer move in every change mode, and releasing the key or pointer commits that move. In Blazor, a bound range slider follows the keyboard in production builds.
Switch
Changed A selected switch keeps its handle color under hover, focus and press, and the state handle and icon tokens fall back to the resting ones. Sliders and dials withtickmarks="none"draw the end stop.
Tel field
Breaking cw-tel-fieldhas no defaultpatternand accepts any phone format. Setpatternanderror-textto restrict it.
Text area
New cw-text-areatakesno-error-line, to leave out the error line on a text area that never validates.
Text field
New A text field anchoring a menu becomes its combobox: the arrow keys move through the items and Enter chooses one.
Toast
Breaking In Blazor, a toast service call shows its content as text, not HTML. Use the toast'sOverline,SupportingTextand icons for structure.New cw-toasthas anactionslot, and color tokens for each toast level.New In Blazor,ShowToast(ToastItem)shows a toast with every field the web component takes, among themSupportingText,DensityandWaveShape.Fixed A toast's countdown pauses while a pointer is over it, focus is inside it, or the page is hidden, and closing a toast returns focus to where it was.
Across the library
Breaking Components take their language from the nearestlangattribute at or above them. Thelocaleattribute and property, and the app configuration'slocale, are removed: writelanginstead. After changing a container'slangat runtime, callrepaintChameleonComponents().Breaking A text-variant field reserves its error line, so it is one line taller. While a field is in error, an element in itstrailing-iconslot is hidden unless it carriesdata-interactive.Breaking In React, a component'sonChangeandonInputhandlers get the component's own element ase.currentTarget, with its real member types:CrCheckboxgives a booleanchecked, a text field a stringvalue. A handler annotatedReact.ChangeEvent<HTMLInputElement>no longer compiles; remove the annotation and let the type be inferred.Breaking In React, a ref's members have the web class's own types: some admitnull, methods such assetRangeTexttake the class's unions instead of any string, and a member such asdisabledno longer acceptsundefined. Narrownullas well asundefined, and pass a value the class accepts.Breaking In Blazor, content written directly inside a component with no default slot, such asCbTextFieldorCbDialog, throws when the page renders. Move it into the named fragment for its slot, such as<LeadingIcon>.Breaking In Blazor, a field inside anEditFormshows its bound field's validation message, unless you setErrororErrorText, and an emptyRequiredfield failsValidate(). Remove a separateValidationMessagethat now repeats it.New About 160 new tokens for hover, pressed and selected colors, among them per-theme state roles in--ct-sys-color-*. The color utilities solve a hover and pressed role for every text role, andsolveStatePairis public inchameleon-components-webandchameleon-build-utilities.New In React, a ref typed with the web component's class, such asuseRef<CwDialog>(null), fits the matchingCr*component'sref.Changed The state layer and press ripple follow Material 3's current timings and opacities, and paint under the label and icon.Changed A field in error shows an error icon and message, not color alone, and reserves the message line so nothing moves.Changed Menus that mark a choice and lists with a selection mode reserve a leading space for a check, so they are wider. A selected or current item shows the check and a bold label; the data grid marks a selected row with a bar.Changed The theme functions write about thirty--ct-sys-color-<role>-solveddeclarations per theme. Filter onSchemeColorswhere you want only color roles, and regenerate golden files.Fixed The published type declarations carry Lit's types, so TypeScript projects compile without installing Lit.Fixed The style configuration's default field density reaches every field; before, a field's own default always won.Fixed Host attributes no longer break hydration, and Blazor's prerender handoff keeps the components it rendered.Fixed Selected chips, radios and tabs paint their hover and pressed states.Fixed On a component with squircle corners, the hover and pressed layer takes the same corner shape, in browsers that supportcorner-shape.Fixed In React, a component's element type carries the web element's public members, such asupdateCompleteand a number field'svalueAsNumber.Fixed The React API tab lists the props a value binding adds, such asonValueChangeanddefaultValue.Fixed In Blazor, a component's link to a page inside the app navigates within the app as soon as the page is interactive. A click in the moment after it turned interactive reloaded the whole page.Fixed In Blazor,DefaultToFirston an unbound selection chooses the first enabled item, and no longer re-renders forever.Fixed In Blazor, an item'sValueoutside a selection reaches the element whatever its type, written the same in every culture.Fixed In Blazor, a number too large for its binding leaves the binding unchanged instead of throwing, and a selection ignores a key that names no item.Fixed The reference docs say that a field'sasyncSinkreceives{ sequence, abortSignal }, and that the theme sheet fromgenerateThemeCssFromHexhas no.theme-lightor.theme-darkclass.
Earlier releases
-
27.0.0-preview.1
Chameleon's first preview, including core web components along with full React and Blazor framework libraries.