Skip to content
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

[feat] Manually add Tailwind classes to multiple elements simultaneously #923

Open
drfarrell opened this issue Dec 23, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@drfarrell
Copy link
Collaborator

Related to #173

Right now, the user cannot select multiple elements, then manually input a tailwind class in the upper right corner tailwind input box. Ideally the user is able to apply more than one class at a time to elements that are multi-selected just like they can with the property inputs below the tailwind input box.

If a user selects two elements, one without a background and another with a background, then adds-in bg-color-500, swap bg-color-500 for the background of the element that already has it, and add it to the element that doesn't have a background.

Keep in mind that this also needs to work for the prefix classes like hover:, sm:, lg:, etc.

We should probably ignore assigning classes to components this way to prevent weird behavior. So, if a user selects two non-components and a component, apply classes to the non-components but the user has to individually select the component.

@drfarrell drfarrell added the enhancement New feature or request label Dec 23, 2024
@drfarrell drfarrell changed the title [feat] Apply Tailwind classes to multiple elements simultaneously [feat] Manually add Tailwind classes to multiple elements simultaneously Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant