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

Sort classes inside className in Astro #215

Merged
merged 3 commits into from
Sep 18, 2023
Merged

Conversation

thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented Sep 18, 2023

When using Astro with React you’d also want to sort className in addition to class and class:list. While we might be able to do some work to figure out if the element the attribute is on is a React component it seems unnecessary and I think it’s reasonable to have this enabled all the time.

Fixes #213

When using Astro with React you’d also want to sort `className` in addition to `class` and `class:list`. While we might be able to do some work to figure out if the element the attirubte is on is a React component it seems unncessary and I think it’s reasonable to have this enabled all the time.
@thecrypticace thecrypticace changed the title Add className to sortable properties in Astro Sort classes inside className in Astro Sep 18, 2023
@thecrypticace thecrypticace merged commit b300077 into main Sep 18, 2023
1 check passed
@thecrypticace thecrypticace deleted the feat/astro-class-name branch September 18, 2023 14:22
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.

Using React Component with className prop in Astro, this plugin doesn't work
1 participant