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

feat(pxToRem): remove global overrides for document styles #789

Merged
merged 13 commits into from
Jan 30, 2019

Conversation

kuzhelov
Copy link
Contributor

@kuzhelov kuzhelov commented Jan 29, 2019

TODO

  • update CHANGELOG
  • verify body font size approach
    • this one will be taken as a follow-up change (and removed from this PR), as it requires fixes to be introduced to Teams styles (Dropdown, RadioGroup) and font size declared in site variables.

This PR aims to remove any global 'set' effects of Stardust font size utility (pxToRem). The following changes are introduced

  • remove setFontSize functionality that allows to change global font size of HTML document
  • remove html font size from Team theme's static styles

These steps are necessary to ensure that each theme that is loaded by Stardust provider won't affect already existed font size styles (defined by the host HTML document).

Removed htmlFontSize variable will be introduced as part of theme (or Provider's) prop, so that this parameter could be customized individually for each loaded theme (without affecting other styles rendered on the page) - this is removed as currently this prop is unable to produce desired effect: it just changes the global font size of the HTML document

@kuzhelov kuzhelov changed the title [WIP] remove global overrides in px-to-rem feat(pxToRem): remove global overrides Jan 29, 2019
@kuzhelov kuzhelov changed the title feat(pxToRem): remove global overrides feat(pxToRem): remove global overrides for document styles Jan 29, 2019
@kuzhelov kuzhelov merged commit 62d7cf4 into master Jan 30, 2019
@kuzhelov kuzhelov deleted the feat/px-to-rem-simplified branch January 30, 2019 15:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants