You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lucascco
changed the title
@font-face ing global.scss is not recognized when shadow is true
@font-face in global.scss is not recognized when shadow is true
Sep 19, 2019
@font-face is not working properly in some browsers when it's declared in a shadowDOM. The workaround is to create a style element with JS and to append it to your head:
Stencil version:
I'm submitting a:
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
When I set the shadow as true, my @font-face added in global.scss is not recognized in my-component.scss
Expected behavior:
The @font-face should be recognized when used in attr css font-family.
Steps to reproduce:
Related code:
stencil.config.ts
global/style/global.scss
my-component/my-component.scss
my-component/my-component.tsx
Other information:
The global style is added inside the shadow but don't working.
The text was updated successfully, but these errors were encountered: