Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Problem with Undefined Variable #14

Closed
chobo2 opened this issue Jun 7, 2018 · 10 comments
Closed

Problem with Undefined Variable #14

chobo2 opened this issue Jun 7, 2018 · 10 comments

Comments

@chobo2
Copy link

chobo2 commented Jun 7, 2018

I try to do in my reactjs/webpack project

import "../../node_modules/bulma/bulma.sass";
import "../../node_modules/bulma-steps/dist/bulma-steps.sass";

I get: Undefined variable: "$grey-light".

@Wikiki
Copy link
Owner

Wikiki commented Jun 7, 2018

Hi,

it seems you have an issu with bulma import. $grey-light is a variable defined by bulma itself.

@chobo2
Copy link
Author

chobo2 commented Jun 7, 2018

hmm yea that is what I thought but I am importing everything in. So I am not sure why it is not happening.

@Wikiki
Copy link
Owner

Wikiki commented Jun 7, 2018

can you access to any other bulma variables within your source (without importing my extension) ?

@chobo2
Copy link
Author

chobo2 commented Jun 7, 2018

I am not sure. I am importing bulma into my component not through another sass file.

@Wikiki
Copy link
Owner

Wikiki commented Jun 7, 2018

can you then try to create a custom sass file using a bulma's variable and import it before the extension to check ?

@chobo2
Copy link
Author

chobo2 commented Jun 7, 2018

Yea if I create a custom sass file and put both the bulmas sass files in it works perfectly fine. I guess it can't work with components and webpack.

Not a game stopper for me but wonder why it does not work.

on a side note, what is the difference between is-success vs is-completed

@Wikiki
Copy link
Owner

Wikiki commented Jun 8, 2018

is-success is the bulma color modifier. That's why I use is-completed to manage completed tasks

@chobo2
Copy link
Author

chobo2 commented Jun 8, 2018

when you say is-completed is to manage completed tasks. Do you mean it has no effect on styling but is used for the javascript?

I am bit confused if is-active, is-completed change the styling.

@Wikiki
Copy link
Owner

Wikiki commented Jun 8, 2018

is-active is to style the current active step. is-completed is to style a finished steps. and finallt is-success is just as is-danger, is-warning,....it's just to force the default step color

@Wikiki
Copy link
Owner

Wikiki commented Jun 8, 2018

is-completed is used both by sass and JavaScript

@Wikiki Wikiki closed this as completed Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants