Closed sima-qian closed 5 years ago
Merging #107 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #107 +/- ##
======================================
Coverage 91.3% 91.3%
======================================
Files 10 10
Lines 46 46
Branches 2 2
======================================
Hits 42 42
Misses 4 4
Impacted Files | Coverage Δ | |
---|---|---|
src/components/BackButton.js | 100% <ø> (ø) |
:arrow_up: |
src/components/TickButton.js | 66.66% <ø> (ø) |
:arrow_up: |
src/components/StationName.js | 100% <ø> (ø) |
:arrow_up: |
src/components/HistoryCaseRevision.js | 77.77% <ø> (ø) |
:arrow_up: |
src/components/Header.js | 100% <ø> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 367e516...71b7a83. Read the comment docs.
This looks great and perhaps we're already quite close to a styled-components
sort of implementation as it stands.
Perhaps there's value in aligning on a naming convention like <component-name>--[<element>|<class>]
to ensure consistency - the CSS might become more monolithic this way (I could imagine some duplication without solid maintenance) but I think it would stop this individual situation and Parcel will at least minify it down.
@import <filename>.scss
statements toassets/index.scss
-- this is the only place they should be from now on! Take care of the ordering -- files declaring Sass variables should be at the top..scss
file imported to a component isindex.scss
incomponents/App.js
-- no need to import elsewhere!.scss
file, do not apply style to generic elements (e.g.<a>
), as the CSS is compiled into a single file so will be applied across the entire app.