Skip to content

Commit

Permalink
fix(atomizer: add allowParamToValue to column-count (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
redonkulus authored Dec 9, 2022
1 parent f2a18d2 commit d4346c8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/giant-houses-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"atomizer": patch
---

fix(atomizer: add allowParamToValue to column-count
1 change: 1 addition & 0 deletions packages/atomizer/src/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,7 @@ module.exports = [
type: 'pattern',
name: 'Column count',
matcher: 'Colmc',
allowParamToValue: true,
styles: {
'column-count': '$0',
},
Expand Down
7 changes: 6 additions & 1 deletion packages/atomizer/tests/__snapshots__/rules.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5212,7 +5212,12 @@ exports[`Rules color 1`] = `
"
`;

exports[`Rules column-count 1`] = `""`;
exports[`Rules column-count 1`] = `
".Colmc\\(1px\\) {
column-count: 1px;
}
"
`;

exports[`Rules column-fill 1`] = `
".Colmf\\(a\\) {
Expand Down

0 comments on commit d4346c8

Please sign in to comment.