From 95b56e26f7c0767f3927f8c42a3c8435f8d1f1e3 Mon Sep 17 00:00:00 2001 From: Louis-Maxime Piton Date: Fri, 27 Oct 2023 08:45:42 +0200 Subject: [PATCH] Dark mode: Popovers (#2325) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Julien Déramond --- scss/_variables.scss | 4 ++-- site/content/docs/5.3/dark-mode.md | 37 ++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/scss/_variables.scss b/scss/_variables.scss index 21291e15b1..0e4b883029 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -797,7 +797,7 @@ $headings-font-family: null !default; $headings-font-style: null !default; $headings-font-weight: 700 !default; $headings-line-height: $h6-line-height !default; -$headings-color: inherit !default; +$headings-color: $black !default; // Boosted mod: instead of `inherit` // scss-docs-end headings-variables // scss-docs-start display-headings @@ -1817,7 +1817,7 @@ $popover-box-shadow: var(--#{$prefix}box-shadow) !default; $popover-header-font-size: $font-size-lg !default; // Boosted mod: instead of `$font-size-base` $popover-header-line-height: 1.11 !default; // Boosted mod $popover-header-bg: $popover-bg !default; // Boosted mod: instead of `var(--#{$prefix}secondary-bg)` -$popover-header-color: $headings-color !default; +$popover-header-color: var(--#{$prefix}heading-color) !default; // Boosted mod: instead of `$headings-color` $popover-header-padding-top: $popover-padding-y !default; // Boosted mod $popover-header-padding-bottom: map-get($spacers, 2) !default; // Boosted mod $popover-header-padding-y: initial !default; // Boosted mod: instead of `.5rem` diff --git a/site/content/docs/5.3/dark-mode.md b/site/content/docs/5.3/dark-mode.md index 94e94a00e8..e3aaaa9e00 100644 --- a/site/content/docs/5.3/dark-mode.md +++ b/site/content/docs/5.3/dark-mode.md @@ -1821,6 +1821,43 @@ sitemap_exclude: true +### Popovers + +

No theme

+ +
+ + +
+ +

Dark theme on container

+ +
+ + +
+ +

Light theme on container

+ +
+ + +
+ +

Dark theme on component

+ +
+ + +
+ +

Light theme on component

+ +
+ + +
+ ### Spinners

No theme