Trouble consuming Eui with create-react-app (saas-loader) #4312
-
Hi. I was previously importing the css file ( But now i'm trying to use the collapsible nav (https://elastic.github.io/eui/#/navigation/collapsible-nav - Full patern). And for that it seems that i need to add this So i switch to this (https://github.com/elastic/eui/blob/master/wiki/consuming.md#using-our-sass-variables-on-top-of-compiled-css)
But then i have an error :
What did i do wrong ? Thanks a lot. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I believe you need to put the mixin in
|
Beta Was this translation helpful? Give feedback.
-
I think @j-m is right. @GautierT you need to use From W3 Schools, for more info
See if placing the |
Beta Was this translation helpful? Give feedback.
-
Hi @GautierT, You can take a look at how we're doing this in our gatsby starter: But how @j-m and @kshitij86 mentioned you need to use the mixin inside a selector. |
Beta Was this translation helpful? Give feedback.
Hi @GautierT,
You can take a look at how we're doing this in our gatsby starter:
https://github.com/elastic/gatsby-eui-starter/blob/e4ab2c39a76e449cc8fa61a05d5868512fe645a0/src/global_styling/index.scss#L1-L10
But how @j-m and @kshitij86 mentioned you need to use the mixin inside a selector.