Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.6 KB

CHANGELOG.md

File metadata and controls

50 lines (31 loc) · 1.6 KB

CHANGELOG

v4.0.1 (2024-01-18)

  • Set delegateFocus property to true when attaching the shadow root to the host element to delegate focus to the first focusable element in the shadow root.
  • Add aria-hidden="true" to the inline SVGs icons to prevent them from being read by screen readers.
  • Update dev dependencies.

v4.0.0 (2023-11-06)

Documentation for v3.0.0 can be found here.

Breaking Changes

  • Remove toggle-title attribute. User can still use the title attribute to set the title of the component.
  • Remove CSS custom properties.
  • Rename CSS Part button to base.
  • Add a default label next to the icon for each theme.
  • Rename emitted event theme-toggle:change to tt-theme-change.

Other Changes

  • Add new slots for overriding the default content for icons and labels for each theme.
  • Add new CSS Parts for customizing the icon and label for each theme.
  • Add new attribute no-icon to hide the icon.
  • Add new attribute no-label to hide the label.
  • Generate types declarations for the component.

Bug Fixes

  • Fix changing the storage-key attribute or the equivalent property at runtime, not updating the theme appropriately.

v3.0.0 (2023-03-02)

Breaking Changes

Re-write the component to support three-state theme toggle (system, light, dark).

v2.0.0 (2022-11-18)

  • Replace rollup.js with parcel.js for bundling.
  • Update dev dependencies.

Breaking Changes

  • Only minified production builds will be included in the dist folder from now on.

v1.0.0 (2022-10-27)

  • Initial release