Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCSS: This variable was not declared #3841

Closed
rhoudroge opened this issue Jun 13, 2024 · 4 comments
Closed

SCSS: This variable was not declared #3841

rhoudroge opened this issue Jun 13, 2024 · 4 comments

Comments

@rhoudroge
Copy link

rhoudroge commented Jun 13, 2024

This is about Bulma.

Overview of the problem

This is about the Bulma CSS framework and compiling an SCSS file that used to work with v0.9

Description

Hi!
Thanks for the great work maintaining Bulma! I've been very happy using this framework.
I am upgrading from 0.9 to 1.0, and it seems some customisation variables have disappeared, such as $navbar-item-color with SASS now showing this error: Error: This variable was not declared with !default in the @used module.
Could you please let me know how to deal with these variables, I have a number of them in my source file?
Thanks!

Steps to Reproduce

  1. Define the above variable in the scss file when importing navbar using the with directive
  2. Compile the SCSS file

Expected behavior

SCSS compiles correctly

Actual behavior

The actual compilation results in the above error.

@ekrister
Copy link

ekrister commented Aug 6, 2024

Having the same problem, I'm missing the possibility to edit the following after updating to Bulma 1.0:

$input-border-color
$input-hover-border-color
$button-hover-border-color
$input-focus-box-shadow-size
$input-focus-box-shadow-color

By the way, the need to edit these settings is related to accessibility.

@jgthms
Copy link
Owner

jgthms commented Sep 18, 2024

$navbar-item-color was restored in this commit: 66336ea

As for the $input ones, I'm gonna restore them now.

@jgthms jgthms closed this as completed Sep 18, 2024
@rhoudroge
Copy link
Author

Hi @jgthms , thanks a lot for your feedback! I am using a number of them that I haven't listed here. Should I raise another issue or would you rather I list them here ?

@jgthms
Copy link
Owner

jgthms commented Sep 18, 2024

Can you please raise another issue? Thank you.

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

No branches or pull requests

3 participants