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.

Changes in 27.0.0-preview.2 By kindBy component

Breaking 11 changes need action

  • Components take their language from the nearest lang attribute at or above them. The locale attribute and property, and the app configuration's locale, are removed: write lang instead. After changing a container's lang at runtime, call repaintChameleonComponents().
  • Data table cells wrap by default, and rows grow to fit, virtualized tables included. wrap-cells is removed; set truncate-cells to keep one line per row.
  • The data table and data grid have no filled or tonal variant, and the --ct-table-filled-* and --ct-table-tonal-* tokens are removed. Use surface, and set its tokens for a colored table.
  • cw-tel-field has no default pattern and accepts any phone format. Set pattern and error-text to 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-icon slot is hidden unless it carries data-interactive.
  • In React, a component's onChange and onInput handlers get the component's own element as e.currentTarget, with its real member types: CrCheckbox gives a boolean checked, a text field a string value. A handler annotated React.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 as setRangeText take the class's unions instead of any string, and a member such as disabled no longer accepts undefined. Narrow null as well as undefined, 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, SupportingText and icons for structure.
  • In Blazor, content written directly inside a component with no default slot, such as CbTextField or CbDialog, throws when the page renders. Move it into the named fragment for its slot, such as <LeadingIcon>.
  • In Blazor, a field inside an EditForm shows its bound field's validation message, unless you set Error or ErrorText, and an empty Required field fails Validate(). Remove a separate ValidationMessage that 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-select takes autocomplete, 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, and pageStatusFormatter for the page status.
  • cw-data-table takes touch-target, and its touch targets are at least 24px.
  • cw-text-area takes no-error-line, to leave out the error line on a text area that never validates.
  • cw-toast has an action slot, 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, and solveStatePair is public in chameleon-components-web and chameleon-build-utilities.
  • cw-nav takes mask-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 matching Cr* component's ref.
  • In Blazor, ShowToast(ToastItem) shows a toast with every field the web component takes, among them SupportingText, Density and WaveShape.

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>-solved declarations per theme. Filter on SchemeColors where you want only color roles, and regenerate golden files.
  • A progress indicator with no aria-label logs a warning.
  • The docs MCP server's check_code catches more mistakes, each with its fix: an AriaLabel parameter on a Blazor component, which is a plain aria-label attribute; an aria-labelledby or aria-describedby reference that a component cannot follow to an element elsewhere on the page; a select option with no content and no aria-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.3 at a step of 0.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 value reads as a number in its type, so a handler can pass e.currentTarget.value straight to a number state. Setting undefined still 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-select has a combobox structure named by its label, and cw-menu carries 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 input per 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-autofocus focuses a slotted element that carries autofocus itself, 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 updateComplete and a number field's valueAsNumber.
  • 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 onValueChange and defaultValue.
  • In Blazor, an event a component fires during its first update reaches your handler. A data table's OnRowsChange was often lost.
  • In Blazor, an item in a menu's anchor slot 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, DefaultToFirst on an unbound selection chooses the first enabled item, and no longer re-renders forever.
  • In Blazor, an item's Value outside 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 asyncSink receives { sequence, abortSignal }, and that the theme sheet from generateThemeCssFromHex has no .theme-light or .theme-dark class.

Earlier releases

  • 27.0.0-preview.1

    Chameleon's first preview, including core web components along with full React and Blazor framework libraries.