Fix licensing comment appearing thrice in main CSS file#164
Fix licensing comment appearing thrice in main CSS file#164jackdomleo7 merged 1 commit intojackdomleo7:masterfrom tannerdolby:patch-119
Conversation
jackdomleo7
left a comment
There was a problem hiding this comment.
Haha this is annoying but good spot!
|
@tannerdolby so I didn't think of this when looking at your PR, but I created a See commit: ab3856f |
|
@jackdomleo7 I'm glad I was able to help! Nice one using the Also, thanks for your review @alvaromontoro :) |
Description
Fixes #119
The comment appearing thrice was because
/*! Checka11y.css v1.3.3 | MIT License | github.com/jackdomleo7/Checka11y.css */appeared in a few separate sass files:src/warnings/checka11y-warnings.scsssrc/errors/checka11y-errors.scsssrc/checka11y.scssThen we we compile all the SCSS together, those comments appear in the compiled CSS file based on the order of each @use rule in checka11y.scss.
Flow:
_customisation.scsspartial gets loaded first (after _variables) so that partial is what appears first when compilingchecka11y.css. There isn't anything special about _customisation.scss, its just first in the @use "loading" order when compiling the main css file, if we put the comment instead into_variables, then we would have to make sure its not loaded in many files otherwise the comment would appear multiple times like the original state.Why is this important?
Fixes an annoying bug that was encountered awhile ago while working on another ticket.
Covered test cases
No test cases modified. Tests still pass as expected with
npm run test.Did you test on all major browsers?
Other details
T&Cs