From 83c9c70eacf5671cad33d7f6a04ddf32f20db024 Mon Sep 17 00:00:00 2001 From: "louismaxime.piton" Date: Wed, 18 Oct 2023 11:27:30 +0200 Subject: [PATCH] Add color mode on Modal --- scss/_variables.scss | 2 +- site/content/docs/5.3/dark-mode.md | 157 +++++++++++++++++++++++++++++ 2 files changed, 158 insertions(+), 1 deletion(-) diff --git a/scss/_variables.scss b/scss/_variables.scss index f37ef422ec..529748bcc9 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -1870,7 +1870,7 @@ $modal-title-line-height: $line-height-base !default; $modal-content-padding-y: $spacer !default; // Boosted mod $modal-content-padding-x: 0 !default; // Boosted mod $modal-content-padding: $modal-content-padding-y $modal-content-padding-x !default; // Boosted mod -$modal-content-color: null !default; +$modal-content-color: var(--#{$prefix}body-color) !default; // Boosted mod: instead of `null` $modal-content-bg: var(--#{$prefix}body-bg) !default; $modal-content-border-color: var(--#{$prefix}border-color-translucent) !default; $modal-content-border-width: var(--#{$prefix}border-width) !default; diff --git a/site/content/docs/5.3/dark-mode.md b/site/content/docs/5.3/dark-mode.md index 879b4193c1..b88b1e6ba2 100644 --- a/site/content/docs/5.3/dark-mode.md +++ b/site/content/docs/5.3/dark-mode.md @@ -1069,6 +1069,163 @@ sitemap_exclude: true +### Modal + +

No theme

+ +
+ + + +
+ +

Dark theme on container

+ +
+ + + +
+ +

Light theme on container

+ +
+ + + +
+ +

Dark theme on component

+ +
+ + + +
+ +

Light theme on component

+ +
+ + + +
+ ### Navs & tabs

No theme