- Set
delegateFocus
property totrue
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.
Documentation for
v3.0.0
can be found here.
- Remove
toggle-title
attribute. User can still use thetitle
attribute to set the title of the component. - Remove CSS custom properties.
- Rename CSS Part
button
tobase
. - Add a default label next to the icon for each theme.
- Rename emitted event
theme-toggle:change
tott-theme-change
.
- 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.
- Fix changing the
storage-key
attribute or the equivalent property at runtime, not updating the theme appropriately.
Re-write the component to support three-state theme toggle (system, light, dark).
- Replace rollup.js with parcel.js for bundling.
- Update dev dependencies.
- Only minified production builds will be included in the
dist
folder from now on.
- Initial release