forked from twbs/bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
twbs#23690: Add quotes to mapping keys
- Loading branch information
1 parent
9cdf43d
commit 4f82186
Showing
1 changed file
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4f82186
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MartijnCuppens, can you please explain why you create an empty map and merge it? Is this for custom colors? I am just trying to understand the motivation here. Thanks!
4f82186
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @tommyc38, I just implemented a fix for twbs#23690, the empty array was there before.
However, I think this is done so you can define your own colors configuration like:
Afterwards, you can include Bootstrap and you can use
color("highlighted")
in your custom scss.If you didn't define
$theme-colors
before including Bootstrap, SCSS would throw an error if the empty array wasn't defined.Is that clear to you?
4f82186
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MartijnCuppens, thanks for clarifying that for me. I thought it was for custom colors but wasn't quite sure given both maps have the same name. I think would be more explicit calling it "custom-color" or "custom-theme-color". Thanks again!