ant-design / cssinjs

https://ant-design.github.io/cssinjs
MIT License
237 stars 59 forks source link

fix: Media query should pass query to children #12

Closed zombieJ closed 2 years ago

zombieJ commented 2 years ago

FIX:

@media (max-width: 12450px) {
  .btn {
    color: red;
  }
}

to be

.hashed@media (max-width: 12450px) {
  .btn {
    color: red;
  }
}

which should be

@media (max-width: 12450px) {
  .hashed.btn {
    color: red;
  }
}
github-actions[bot] commented 2 years ago

🎊 PR Preview 7af2a2e7d445550c402b82dbe5646ae9ea019ea5 has been successfully built and deployed to https://ant-design-cssinjs-preview-pr-12.surge.sh

:clock1: Build time: 174.854s

🤖 By surge-preview

codecov-commenter commented 2 years ago

Codecov Report

Merging #12 (7af2a2e) into master (cbd6afa) will increase coverage by 0.15%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
+ Coverage   99.46%   99.61%   +0.15%     
==========================================
  Files           8        8              
  Lines         186      260      +74     
  Branches       38       85      +47     
==========================================
+ Hits          185      259      +74     
  Misses          1        1              
Impacted Files Coverage Δ
src/useStyleRegister.tsx 100.00% <100.00%> (ø)
src/util.ts 100.00% <0.00%> (ø)

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 cbd6afa...7af2a2e. Read the comment docs.