Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

CSS Utils don't work inside the project #113

Open
JEricaM opened this issue May 18, 2020 · 0 comments
Open

CSS Utils don't work inside the project #113

JEricaM opened this issue May 18, 2020 · 0 comments

Comments

@JEricaM
Copy link

JEricaM commented May 18, 2020

Hi to everyone 🙂
I've started a Pwa Ionic + Stencil toolkit project
https://github.com/ionic-team/ionic-pwa-toolkit

And I've the Ionic css utils in my app.css

/** Optional CSS utils that can be commented out */
@import "~@ionic/core/css/padding.css";
@import "~@ionic/core/css/float-elements.css";
@import "~@ionic/core/css/text-alignment.css";
@import "~@ionic/core/css/text-transformation.css";
@import "~@ionic/core/css/flex-utils.css";
@import "~@ionic/core/css/display.css";

If I use the css utils classes like ion-text-justify or ion-hide-sm-up inside a page of my pwa, the util don't work unless I include the optionals @imports inside my page css.

I don't understand why I have this problem because I've included all the optionals css in app.css under /global

These are my ionic and stencil versions
"@ionic/core": "^5.0.7",
"@stencil/core": "^1.12.2",

Thank you for the help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant