Component changelog

Radio changelog

Component-specific release notes collected from the full changelog. This page filters the published entries that mention Radio.

Release

v1.2.1

npm
Patch Changes
  • b8cddb8RadioGroup and RadioCards render their items directly inside the radiogroup element. They used to sit in an extra <div role="group">, so display: grid or flex with gap on the root didn't lay them out, and assistive tech met a group nested inside the radiogroup. The Clarity and Baremetal themes now lay out the root itself. If your own CSS targeted the inner wrapper (.rad-ui-radio-group-root > [role="group"]), move those rules to the root (#2336).

Release

v1.2.0

npm
Minor Changes
  • ed15256: Add forceMount to Checkbox.Indicator and RadioGroup.Indicator (and the CheckboxGroup primitive content): the indicator stays rendered while unchecked, with data-state="unchecked", so it can animate out or reserve space. The radio indicator now also carries data-state.

  • 07e6783: DropdownMenu, ContextMenu and Menubar gain CheckboxItem, RadioGroup, RadioItem, ItemIndicator, Group and GroupLabel. Checkbox items toggle (checked, defaultChecked, onCheckedChange), radio items pick one value in their group (value, defaultValue, onValueChange), and both keep the menu open unless closeOnClick is set. They expose menuitemcheckbox and menuitemradio with aria-checked, data-state and data-checked, and a GroupLabel names its Group for screen readers.

Patch Changes
  • 8356a3c: The default theme now works in forced-colours mode (Windows High Contrast). Keyboard focus shows a system-colour outline (the theme's box-shadow rings are dropped in that mode), and parts that show state only with a fill (the Switch thumb and checked track, the Radio dot, the Slider range and thumb, Progress, the Tabs indicator, pressed toggles, the highlighted menu or list item) keep it in system colours.

  • 07e6783: CheckboxGroup and RadioGroup always render their group wrapper. With a single item wrapped in its Label, the group's role and id used to merge onto that <label>, so the checkbox or radio lost its accessible name.

Release

v1.1.0

npm
Patch Changes
  • 9ff88bf: fix(a11y): Command separators and RadioGroup arrow keys

    • Command: Command.Separator is now hidden from assistive technology (aria-hidden, no role="separator"). A separator isn't an allowed child of the listbox it renders inside, so axe reported a critical aria-required-children violation.
    • RadioGroup / RadioCards: all four arrow keys move between options, whatever the orientation, as the WAI-ARIA radio pattern specifies. Radix and Base UI do the same. orientation still sets aria-orientation.

Release

v1.0.0

npm
Patch Changes
  • 55ee49a: Accessibility and Clarity cleanup across core controls: fix menu/navigation semantics and dismissal, form prop/state routing for Checkbox, Radio, TextArea, Fieldset, Text, and Slider, Avatar/Skeleton sizing, and contrast/alignment issues in the Clarity theme.

  • ae43686: Add an automated Clarity design-system audit gate and close the first tranche of findings it surfaced.

    The gate (npm run check:clarity, wired into CI) fails on raw colors, token fallbacks, hand-coded shadows, filter: drop-shadow, and literal duration, spacing, radius, typography, and sizing values. It carries a per-rule budget that acts as a ratchet: CI fails only when a rule goes above its recorded count, and that count drops as findings are fixed. Rules added later start at zero.

    All color, shadow, and motion findings are now zero. Popover's navy shadow and Toast's hand-picked status hexes were replaced with tokens, which fixes their dark-mode rendering; the Radio family shared one control shadow; AvatarGroup referenced an undefined --rad-ui-text. Two dense type sizes that had no token (0.8125rem and 0.9375rem, previously literals in 13 components) are now generated scale steps behind dense and comfortable aliases.

    No rendered value changes: each swap was verified against compiled CSS.

  • 669e5d8: Document Radio keyboard interaction and ARIA reference tables.

  • 06d4f89: Expose stable Radio state and anatomy data attributes.

Release

v0.4.0

npm
Minor Changes
  • 2708fb327 components as officially released as preview, including Checkbox, Radio, Select, Combobox, DropdownMenu, and others.