[IMP] runbot_merge: reset the reset

THe bootstra-review-frontend resets text colors in an undesirable
manner, override the mixin to remove that crap.

Also add a few comments in case this needs to be further tuned in the
future.

Part of #1088
This commit is contained in:
Xavier Morel 2025-03-13 10:41:49 +01:00
parent fcd58141ae
commit d865f1c397

View File

@ -64,13 +64,25 @@ $border-radius: 0.25rem;
//
// Update rgba-css-var to reference target-suffixed vars (e.g. -bg, -text) but
// fallback to the un-suffixed vars if necessary.
//
// Affects utilities-text-color, which affects $utilities[color]([values]),
// which is then used to define the `.text-#{$category}` in
// boostrap/scss/mixin/_utilities.scss
// note: can use (map|deep)-merge to update $utilities maybe?
@function rgba-css-var($identifier, $target) {
@return rgba(
var(
--#{$variable-prefix}#{$identifier}-#{$target}-rgb,
var(--#{$variable-prefix}#{$identifier}-rgb)
),
var(--#{$variable-prefix}#{$target}-opacity)
var(--#{$variable-prefix}#{$target}-opacity, 1)
);
}
$utilities-bg-colors: map-loop($theme-colors, rgba-css-var, "$key", "bg");
// nuke text-emphasis-variant because it resets the text colors in
// bootstrap_review_frontend (though might not matter much...)
@mixin text-emphasis-variant($parent, $color) {
#{$parent} {
--ignore: 1;
}
}