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

Ignore sorting of property 'all' #181

Open
erikbrgn opened this issue Sep 27, 2023 · 1 comment
Open

Ignore sorting of property 'all' #181

erikbrgn opened this issue Sep 27, 2023 · 1 comment

Comments

@erikbrgn
Copy link

A common way to unset default styling is by using the property all with the value unset. This is especially useful for resetting any default styling provided by browsers to elements such as button and input, which then makes it possible to provide your own styling. However, the alphabetical ordering of properties does not allow you to keep all: unset as the first property resulting in any other properties, such as align-items being placed before all: unset therefore making it useless.

Perhaps all: unset should be exempt from the sorting?

@hudochenkov
Copy link
Owner

PR is welcome. Keep in mind that postcss-sorting, library powering auto-fixing part of this plugin, should also be updated.

Alternatively you could try a workaround.

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

No branches or pull requests

2 participants