Skip to content

v119.0.0

Compare
Choose a tag to compare
@carbonci carbonci released this 12 Jun 08:44
· 2551 commits to master since this release
d07b09a

119.0.0 (2023-06-12)

⚠ BREAKING CHANGES

  • button-toggle, button-toggle-group: Changes to props in the ButtonToggle component:
  • defaultChecked, guid and onChange have been removed
  • onClick, onBlur and onFocus have new types
    Changes to props in the ButtonToggleGroup component:
  • all validation-related props (validationOnLabel, error, warning and info) have been
    removed
  • onBlur has also been removed (the main purpose of this will have been to perform validation)
  • the onChange prop has a new type. The event argument now has an HTML button as its target,
    with the value and name props of the corresponding ButtonToggle component passed as optional
    second and third arguments
    Other important changes to be aware of:
  • import paths changed: both components are now named exports from components/button-toggle
  • these components can no longer be used in an "uncontrolled" fashion, the state of which button
    (if any) has been selected must be managed by consumers using React
  • the name prop on ButtonToggleGroup is no longer mandatory. Both this and the corresponding
    prop on ButtonToggle now provide nothing except an internal label which can be used in an
    onChange handler. These have been kept for backwards compatibility and will soon be removed
  • the checked prop on ButtonToggle has likewise been kept only temporarily for backwards
    compatibility, and is an alias for the new pressed prop which sets the aria-pressed
    attribute on the underlying HTML button

Features

  • button-toggle, button-toggle-group: update HTML for accessibility (d621521)

Bug Fixes

  • button-toggle: ensure id is consistent between renders (55c40d0)