atomizer icon indicating copy to clipboard operation
atomizer copied to clipboard

Combine Helper atomic classes elements with others, where same set of properties & values are being used

Open aakashgill opened this issue 2 years ago • 3 comments

Hi

I'm using this stylelint plugin https://github.com/ssivanatarajan/stylelint-group-selectors in one of my project, which suggests, what elements to group together which has same set of properties and values.

But I'm getting this error on my CSS file, which is generated via Atomizer, as you can see in the screenshot below.

image

Feature Request in Atomizer tool

Is it possible to also combine the Helper Classes properties, like BdStart, with others?

Expected output to be

image

Thanks

aakashgill avatar Oct 17 '22 12:10 aakashgill

I would suggest that you have stylelint ignore the generated Atomizer CSS file. It may change without you knowing and makes no sense to break your build.

Edit: I misread the original question when I responded. It should do that automatically. I’d have to dig into the code to see why.

redonkulus avatar Oct 17 '22 14:10 redonkulus

I think what OP is asking should be atomizer's default output. I was surprised to know it's already not happening.

jitendravyas avatar Oct 19 '22 05:10 jitendravyas

Sorry, forgot about this one. I get the issue now, I would have to look at the code to see if helpers can be deduped with the default rule set.

redonkulus avatar Dec 09 '22 17:12 redonkulus