Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

fix(pxToRem): update rem size on static styles render #883

Merged
merged 4 commits into from
Feb 13, 2019

Conversation

kuzhelov
Copy link
Contributor

@kuzhelov kuzhelov commented Feb 11, 2019

TODO

  • update changelog

This PR introduces logic that is necessary to update base rem value of pxToRem utility (that was previously cached forever on page load) once newly loaded theme is applying static styles.

This PR leaves it to be a separate discussion whether static styles should be allowed for Stardust themes - the sole purpose of these changes is to address the problem of page font size updates after theme load that we currently have.

@codecov
Copy link

codecov bot commented Feb 12, 2019

Codecov Report

Merging #883 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #883   +/-   ##
=======================================
  Coverage   92.99%   92.99%           
=======================================
  Files          21       21           
  Lines         728      728           
  Branches       73       69    -4     
=======================================
  Hits          677      677           
  Misses         51       51

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 ad9e82b...2eb46bf. Read the comment docs.

@kuzhelov kuzhelov added 🧰 fix Introduces fix for broken behavior. 🚀 ready for review and removed 🚧 WIP labels Feb 12, 2019
Copy link
Member

@layershifter layershifter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go with this to fix the issue and try to get a better solution.

@kuzhelov kuzhelov merged commit 2832a28 into master Feb 13, 2019
@kuzhelov kuzhelov deleted the fix/update-rem-size-on-static-styles-render branch February 13, 2019 01:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🧰 fix Introduces fix for broken behavior. ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants