diff --git a/scss/_carousel.scss b/scss/_carousel.scss
index ed5c3dec46..dbbd6c8a7b 100644
--- a/scss/_carousel.scss
+++ b/scss/_carousel.scss
@@ -312,6 +312,7 @@
.carousel-control-play-pause {
margin-bottom: $carousel-indicators-margin-bottom;
+ color: $carousel-control-icon-color;
background: rgba($carousel-indicator-active-bg, .5);
border: 0;
@include border-radius($spacer, $spacer);
@@ -354,7 +355,7 @@
left: (100% - $carousel-caption-width) * .5;
padding: $carousel-caption-padding-y $carousel-caption-padding-x; // Boosted mod
color: $carousel-caption-color;
- background-color: color-contrast($carousel-caption-color); // Boosted mod: ensure contrast
+ background-color: $carousel-caption-bg; // Boosted mod
}
// Boosted mod: no dark carousel nor carousel in dark mode since Boosted doesn't have any dark mode for now
diff --git a/scss/_variables.scss b/scss/_variables.scss
index 730e9b5d4b..b6a42a955d 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -2131,7 +2131,8 @@ $carousel-indicators-margin-bottom: $spacer !default;
// End mod
$carousel-caption-width: 70% !default;
-$carousel-caption-color: $black !default;
+$carousel-caption-color: var(--#{$prefix}body-color) !default;
+$carousel-caption-bg: var(--#{$prefix}body-bg) !default; // Boosted mod
$carousel-caption-padding-y: $spacer !default;
$carousel-caption-padding-x: $spacer !default; // Boosted mod
$carousel-caption-spacer: $spacer * 3 !default;
@@ -2140,6 +2141,7 @@ $carousel-control-icon-width: 2.5rem !default;
// Boosted mod
$carousel-control-icon-size: 1rem 1.5rem !default;
$carousel-control-icon-bg: var(--#{$prefix}chevron-icon) !default;
+$carousel-control-icon-color: $black !default; // Boosted mod
$carousel-control-icon-active-bg: $component-active-bg !default;
$carousel-control-pause-indicators-spacing: 10px !default;
diff --git a/site/content/docs/5.3/dark-mode.md b/site/content/docs/5.3/dark-mode.md
index 5fd04c5d3b..bfb1e03bb1 100644
--- a/site/content/docs/5.3/dark-mode.md
+++ b/site/content/docs/5.3/dark-mode.md
@@ -860,6 +860,248 @@ sitemap_exclude: true
+### Carousel
+
+No theme
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
First slide label
+
Some representative placeholder content for the first slide.
+
+
+
+
+
+
Second slide label
+
Some representative placeholder content for the second slide.
+
+
+
+
+
+
Third slide label
+
Some representative placeholder content for the third slide.
+
+
+
+
+
+
+
+
+Dark theme on container
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
First slide label
+
Some representative placeholder content for the first slide.
+
+
+
+
+
+
Second slide label
+
Some representative placeholder content for the second slide.
+
+
+
+
+
+
Third slide label
+
Some representative placeholder content for the third slide.
+
+
+
+
+
+
+
+
+Light theme on container
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
First slide label
+
Some representative placeholder content for the first slide.
+
+
+
+
+
+
Second slide label
+
Some representative placeholder content for the second slide.
+
+
+
+
+
+
Third slide label
+
Some representative placeholder content for the third slide.
+
+
+
+
+
+
+
+
+Dark theme on component
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
First slide label
+
Some representative placeholder content for the first slide.
+
+
+
+
+
+
Second slide label
+
Some representative placeholder content for the second slide.
+
+
+
+
+
+
Third slide label
+
Some representative placeholder content for the third slide.
+
+
+
+
+
+
+
+
+Light theme on component
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
First slide label
+
Some representative placeholder content for the first slide.
+
+
+
+
+
+
Second slide label
+
Some representative placeholder content for the second slide.
+
+
+
+
+
+
Third slide label
+
Some representative placeholder content for the third slide.
+
+
+
+
+
+
+
+
### Close button
No theme