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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sorting exceptions for logical property shorthands #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Robbert
Copy link

@Robbert Robbert commented Sep 29, 2022

Hi Aleks, thanks for your work on stylelint! We are very happy users of your plugin at the nl-design-system project 馃槂

We ran into some issues where border would overwrite the logical properties such as border-block-end-color, so I thought to update the shorthands data with all the new logical CSS properties I could find on MDN.

Copy link
Owner

@hudochenkov hudochenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are very happy users of your plugin at the nl-design-system project

Wow, this is awesome! Thank you for sharing this :)


Could you add tests, please, so we would be confident things won't break in future? Few accept tests, where order is correct. And few reject tests, where order is incorrect.

For autofixing working correctly we would need to update postcss-sorting package also, because it powers autofixing.

Comment on lines +10 to +15
'margin-block',
'margin-block-end',
'margin-block-start',
'margin-inline',
'margin-inline-end',
'margin-inline-start',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it needed to duplicate properties here, since they have separate declarations below?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, will do that. Might not have time for the tweaks until Monday, but I won't forget about it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I will write tests and find out if they are necessary.

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.

None yet

2 participants