Skip to content

Support class:list directive of Astro#192

Merged
thecrypticace merged 8 commits intotailwindlabs:mainfrom
ony3000:support-astro-classlist
Jul 27, 2023
Merged

Support class:list directive of Astro#192
thecrypticace merged 8 commits intotailwindlabs:mainfrom
ony3000:support-astro-classlist

Conversation

@ony3000
Copy link
Copy Markdown
Contributor

@ony3000 ony3000 commented Jul 24, 2023

Hello!

I recently got to know the Astro framework and have been playing around with a practice project for the past few days.
However, when using the class:list directive, even if the tailwindAttributes: ['class:list'] option is set, classes are not sorted, so I opened this PR.

@thecrypticace thecrypticace self-assigned this Jul 24, 2023
@ony3000
Copy link
Copy Markdown
Contributor Author

ony3000 commented Jul 25, 2023

Oops! I missed the template literal test.
I'll turn this PR into a draft for a moment for further work.

@ony3000 ony3000 marked this pull request as draft July 25, 2023 10:10
@ony3000 ony3000 marked this pull request as ready for review July 25, 2023 11:54
@thecrypticace
Copy link
Copy Markdown
Contributor

Hey, thanks for the PR! Could you enable maintainer access to the branch? I've got some cleanups / tweaks to push before merging.

@ony3000
Copy link
Copy Markdown
Contributor Author

ony3000 commented Jul 26, 2023

Yes, I enabled maintainer access to the branch!

@thecrypticace thecrypticace merged commit e642c31 into tailwindlabs:main Jul 27, 2023
@thecrypticace
Copy link
Copy Markdown
Contributor

Updated and merged — thanks! ✨

bronisMateusz pushed a commit to bronisMateusz/prettier-plugin-tailwindcss-drupal that referenced this pull request Apr 16, 2025
* test: add classlist directive test

* feat: implement transformations for classlist directive

* test: add another classlist directive test

* feat: complement transformations for classlist directive

* Update changelog

* Simplify

* Allow generalizing dynamic class list attributes in Astro

* Update changelog

---------

Co-authored-by: Jordan Pittman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants