All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
- 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 todata-act-class(#41) data-act-attributealso works with legacydata-toggle-themebuttons
- legacy
data-toggle-themenow recomputes each button's active state on click instead of blindly togglingdata-act-class, fixing act-class desync with multi-theme toggle lists
- unified theme control with
data-set-themefor button, select, and checkbox - added checkbox support:
<input type="checkbox" value="dark" data-set-theme /> - added comma-separated rotation support on clickable
data-set-themevalues - synced all
data-set-themecontrols on theme updates - kept backward compatibility for legacy v2 attributes (
data-toggle-theme,data-choose-theme)
- rewrote build pipeline with esbuild
- added dual artifacts:
- browser-friendly IIFE
.jsfiles for classic<script src>CDN usage - ESM
.mjsfiles for npm/module imports
- browser-friendly IIFE
- restructured README for shorter, easier scanning (quick start, framework snippets, tables)
- updated CDN docs for classic script usage
- expanded
index.htmlexamples for new API and legacy attribute coverage
2.5.0 (2023-03-03)
2.4.0 (2023-03-02)
- empty theme value btn bug (689d752)
2.0.2 (2021-04-30)
- empty theme value btn bug (689d752)