Closed (fixed)
Project:
Claro
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2019 at 09:35 UTC
Updated:
15 Oct 2019 at 15:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lauriiiThis is where I got with this. Only downside I could tell with this approach is that the manual import leads into empty
:rootselector at the beginning of the file. This seems like a minor problem which we could try to address in a follow-up.Comment #3
huzookaAs I see, this patch imports variables only for some assets inside the
css/src/componentsfolder, but we use those vars elsewhere as well (layout,theme).Assets that will miss variables after patch #2:
My recommendation: import
base/variables.cssin every asset, unconditionally.Comment #4
lauriiiFixed ✌️
Not sure which way is better. I'd keep it so that only files using variables has the import to not cause any potential for confusion. It would be also hard to enforce this in core.
Comment #5
fhaeberleReviewed this! In some places, there were still imports missing and in some places I deleted the import because they aren't any variables being used in the particular file. Leaving on needs review because of new patch.
Comment #6
huzookaAfter applied #5 and post-processed out assets, I cannot find any
var()usage in thecss/distfolder anymore.Comment #8
lauriiiThank you! Committed! 🚀