-
Notifications
You must be signed in to change notification settings - Fork 93
Can't override --paper-font-common-base_-_font-family from document level #148
Comments
I have the same problem, which I've raised on SO. I don't want to use Roboto and I don't want to download it from the Google fonts API (not all my users can access it, so they get errors or long waits). The issue is easy to reproduce: set your own
Import Import Line 12 in 739c14c
Lines 22 to 30 in 739c14c
|
Looks like it's also impossible to override paper-item(s) in paper-menu, with the paper-font-common-base for some reason. Everything but paper-item (menu) gets set to correct font but the menu all insists on sticking to Roboto font no matter what i do. |
@Clay-Ferguson |
Description
Can't overwrite default font (Roboto) using custom property mixin when any paper font mixins are referenced ie: @apply(--paper-font-sunhead); as it looks like nested CSS variables get confused.
Live example:
https://codepen.io/rhysyg03/pen/YxgYQp?editors=1100
When a CSS variable is nested, in this example:
--paper-font-subhead_-_font-family variable refers back to variable in the same declaration (html) even if it’s been overwritten (.my-class).
Expected outcome
The NEW --paper-font-common-base_-_font-family mixin would overwrite default variable.
Actual outcome
The NEW --paper-font-common-base_-_font-family mixin DOES NOT get overwritten.
Steps to reproduce
Browsers Affected
The text was updated successfully, but these errors were encountered: