-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
Invalid output when declaring a custom shade map #2483
Invalid output when declaring a custom shade map #2483
Comments
Indeed, that's an issue. Let me look into it. |
Is there a future release date for this fix? |
@jgthms Any plans on releasing a new version with this fix soon? |
I still see this problem on version 0.8.0. Anyone else has this problem? |
In base/helpers.sass, should update :
The line |
This issue is still happening, and it actually got even worse than on previous versions, as now the resulting |
I am seeing the same behaviour in 9.0.0, as @matheusgrieger pointed out with 4 values now. |
@jgthms This is still happening with 0.9.3, it would be great to reopen the issue...
BULMA CSS:
|
This is about Bulma.
Overview of the problem
When declaring a custom shade map, the colour helper functions for "has-background-{shade}" and "has-text-{shade}" outputs in an invalid css format.
This issue was previously reported but has been subsequently closed without a fix.
Description
Using Bulma 0.7.4, I am trying to define custom shades and add a color to it (i.e. fuchsia). I need to find a way for having the corresponding helper classes generated (.has-text-fuchsia .has-background-fuchsia).
Steps to Reproduce
Add $fuchsia to $custom-shades, like so:
$fuchsia: #d705a3
$custom-shades: ("fuchsia": $fuchsia);
When I do that, Bulma first runs mergeColorMaps and then generates the classes, except the ones corresponding to $custom-shades are wrong, because findColorInvert is also called, which adds #fff as the default inverted color.
This works without problems if I use $custom-colors (either specifying the inverted color or not).
Expected behavior
The CSS output should be:
.has-text-fuchsia { color: #d705a3 !important; }
Actual behavior
The CSS output is:
.has-text-fuchsia { color: #d705a3, #fff !important; }
The text was updated successfully, but these errors were encountered: