jxnblk / tachyons-components

React UI components powered by Tachyons with a styled-components like API
MIT License
411 stars 15 forks source link

Add pseudo class support #3

Closed tvararu closed 4 years ago

tvararu commented 7 years ago

Closes #2.

This is best reviewed commit by commit.

I've changed the parser to serialise rules into arrays because insertRule wants individual CSS blocks. This has the side effect of making tachyons.json also a bit more readable.

There are still some classes which don't work with this, ones with nested children, I'll open another issue (https://github.com/jxnblk/tachyons-components/issues/4) and open another PR, but wanted to get this across for feedback. :)

Also just wanted to say you do amazing work @jxnblk, I can't wait to use this.

codecov-io commented 7 years ago

Codecov Report

Merging #3 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #3   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           2      3    +1     
  Lines          50     75   +25     
=====================================
+ Hits           50     75   +25
Impacted Files Coverage Δ
src/css.js 100% <100%> (ø) :arrow_up:
lib/parser.js 100% <100%> (ø)

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 aa3e157...fc0001b. Read the comment docs.