Skip to content

Commit

Permalink
Fix order of flex-* properties
Browse files Browse the repository at this point in the history
Fixes #385
  • Loading branch information
stormwarning committed Sep 22, 2024
1 parent 94af7a6 commit d3d7f7b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/selfish-scissors-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'stylelint-config-recess-order': patch
---

Fix order of `flex-*` properties
The `flex` shorthand is followed by `-grow`, `-shrink`, and `-basis`, following the order of the shorthand property. The `flex-flow` shorthand now correctly preceeds the `-direction` and `-wrap` properties.
6 changes: 3 additions & 3 deletions groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ const propertyGroups = [
// Flexible boxes.
properties: [
'flex',
'flex-basis',
'flex-direction',
'flex-flow',
'flex-grow',
'flex-shrink',
'flex-basis',
'flex-flow',
'flex-direction',
'flex-wrap',
'-webkit-box-orient',
],
Expand Down

0 comments on commit d3d7f7b

Please sign in to comment.