-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Prevent null
Sass variables from creating empty CSS variables
#36595
Comments
This isn't exactly broken, it's that the Sass variables are #35442 aimed to try that out, but I wasn't too keen on the extra syntax on top of each instance. |
FWIW, this is valid CSS. 🤷 The only potential issue is the predictability regarding the behaviour, since every property will inherit and some won't (but again, this is the standard behaviour when you don't provide any value). Dropping them would decrease file size a little bit, but I'm not sure it'd be noticeable. |
My biggest issue here is that compiled css is considered broken by my IDE due to the missing values and subsequent minify task is not being run because of this. |
Then those are bugs in IDE, linters and minifiers. Nevertheless, those empty custom properties are useless and should be dropped to prevent confusion and save a few bytes. |
null
Sass variables from creating empty CSS variables
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
When the issue is closed, you'll know it's been addressed ;). |
Missing property values in the "(property) : (value)" declaration.
|
This is still an issue in Bootstrap 5.3.2 I'm trying to use less and it is failing due to the value being empty. |
Are there any updates or known fixes on this? I am also compiling Bootstrap 5.3.2 using LibSass and |
Prerequisites
Describe the issue
I'm trying to compile bootstrap's scss without any changes. It compiles fine, but produces broken css with 15 absent values.
For example this:
--bs-heading-color: ;
at line 71Compiling with Dart-Sass 1.52.3
Actually, already compiled css, which ships inside bootstrap-5.2.0-beta1.zip and latest bootstrap-main.zip files contain that broken css as well.
Scss from 5.1.3 compiles proper css on the same setup.
Reduced test cases
Try to compile with minimal custom.scss file:
@import "../node_modules/bootstrap/scss/bootstrap";
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome, Opera
What version of Bootstrap are you using?
5.2.0 beta 1, latest snapshot.
The text was updated successfully, but these errors were encountered: