Use correct default color for new border config #11828
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix #11561 and fix #11816
As discussed, the problem here seems to the wrong color for mixing.
When
$body-colorand$body-bgare not defined, we should use the same values as Bootstrap default variables, which are the ones used for default theme (i.etheme: default)However, we need to try get back a nice default. Previously
$border-colorused was bootstrap defaultquarto-cli/src/resources/formats/html/bootstrap/dist/scss/_variables.scss
Line 550 in 768e540
quarto-cli/src/resources/formats/html/bootstrap/dist/scss/_variables.scss
Line 12 in 768e540
One way to fix is the following:
mix()idea for$border-colorintroduced inbody-colororbody-bgis not defined.So
quarto-cli/src/resources/formats/html/bootstrap/_bootstrap-variables.scss
Lines 277 to 281 in 768e540
This way we get

Which is quite close.
If we want to keep default theme the same, we could just
mix()when variable exists.But I don't think we want to make use of those
@ifbecause our SCSS -> CSS exposer logic.This PR aims to fix the default theme. Then we need to fix
before we can do thorough testing with various theme.
Right now this is some examples after this PR
So I think we get good mix with this.