Skip to content

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.

@hudochenkov
Copy link
Owner

Fixed in 8a28522 and released in 7.0.0.

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