-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different class on trigger and target? #88
Comments
Hi @jenstornell! No, for now it is not possible. By the way, I don't see why you would like to have differents class names. |
@Twikito I use https://tailwindcss.com/. With that library you add and remove utility classes for whatever you need. Nothing goes into the css file. |
@jenstornell Ok, I see. Let me investigate on what could be possible. |
@jenstornell Ok, tell me, what do you think if I add two new attibutes to be able to seperate behaviour?
And obviously, I would need to remove What do you think? |
@Twikito Yes, I think the new approach would be great, except for it being a breaking change of cause. This change alone would make it Tailwind compatible. |
@jenstornell Ok, great. I'll try to do that asap. |
A workaround I use for this at the moment is the |
@jenstornell Almost done. Need to test a little bit more, and update documentation. |
@jenstornell Hey! It's done: these options are now availables! Documentation is updated: https://twikito.github.io/easy-toggle-state/#toggling |
@Twikito Sorry for my late reply. Finally I've got some time to get back to this. I can confirm that it works. I tested it with the simple tabs example. A note for others reading this issue, the data attributes has changed from this discussion to include an
Thank you for keeping this repo around, it's great! |
Let's say I have the below:
Then
active
will be added as a class to both the trigger and the target elements.I can use
data-toggle-target-only
which disable the class on the target. However, that is not what I want in this case.I would like one toggle class on the trigger element and another on the target.
Is that possible?
The text was updated successfully, but these errors were encountered: