Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 2.16 KB

File metadata and controls

53 lines (31 loc) · 2.16 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

[3.0.4] (2026-06-14)

Features

  • added data-act-attribute="name[:value]" to set an arbitrary HTML attribute (e.g. aria-pressed, aria-current) on a button while its theme is active, as a more flexible alternative to data-act-class (#41)
  • data-act-attribute also works with legacy data-toggle-theme buttons

Bug Fixes

  • legacy data-toggle-theme now recomputes each button's active state on click instead of blindly toggling data-act-class, fixing act-class desync with multi-theme toggle lists

[3.0.1] (2026-06-07)

Features

  • unified theme control with data-set-theme for button, select, and checkbox
  • added checkbox support: <input type="checkbox" value="dark" data-set-theme />
  • added comma-separated rotation support on clickable data-set-theme values
  • synced all data-set-theme controls on theme updates
  • kept backward compatibility for legacy v2 attributes (data-toggle-theme, data-choose-theme)

Build and distribution

  • rewrote build pipeline with esbuild
  • added dual artifacts:
    • browser-friendly IIFE .js files for classic <script src> CDN usage
    • ESM .mjs files for npm/module imports

Docs and examples

  • restructured README for shorter, easier scanning (quick start, framework snippets, tables)
  • updated CDN docs for classic script usage
  • expanded index.html examples for new API and legacy attribute coverage

2.5.0 (2023-03-03)

2.4.0 (2023-03-02)

Bug Fixes

  • empty theme value btn bug (689d752)

2.0.2 (2021-04-30)

Bug Fixes

  • empty theme value btn bug (689d752)