theme-change icon indicating copy to clipboard operation
theme-change copied to clipboard

`data-act-class` is not enough

Open jackprogramsjp opened this issue 2 years ago • 2 comments

This package is VERY non-customizable.

What if I wanted to use data-act-class for an attribute, for example? Like, set an attribute to true when activated. You can't. You are forced to use data-act-class.

Either have a callback listener for active through JavaScript, or have a data-act-attribute for an attribute as well!

jackprogramsjp avatar Aug 04 '23 05:08 jackprogramsjp

Instead of hassling around with this, it's better if you just create your own theme switch if you are using attributes, or any other information, instead of data-act-class.

jackprogramsjp avatar Aug 04 '23 05:08 jackprogramsjp

I agree.
However I'm busy with daisyUI issues and improvements and I'm not sure when I will have free time to add this feature.

Any help is appreciated and PRs are welcome.

saadeghi avatar Aug 04 '23 12:08 saadeghi