From 3674479673a83594b676d87a2c825408fd7bea17 Mon Sep 17 00:00:00 2001 From: Issermann Hannah Date: Mon, 9 Oct 2023 14:59:16 +0200 Subject: [PATCH] bg not transparent and add css vars for color and bg + rm blank line + data-bs-theme on class .tag --- scss/_tags.scss | 6 ++-- scss/_variables.scss | 4 ++- site/content/docs/5.3/dark-mode.md | 48 +++++++++++++++--------------- 3 files changed, 31 insertions(+), 27 deletions(-) diff --git a/scss/_tags.scss b/scss/_tags.scss index 45fe86e481..642c740274 100644 --- a/scss/_tags.scss +++ b/scss/_tags.scss @@ -2,6 +2,8 @@ .tag { // scss-docs-start tag-css-vars + --#{$prefix}tag-color: #{$tag-color}; + --#{$prefix}tag-bg: #{$tag-bg}; --#{$prefix}tag-gap: #{$tag-gap}; --#{$prefix}tag-padding-x: #{$tag-padding-x}; --#{$prefix}tag-padding-y: #{$tag-padding-y}; @@ -28,8 +30,8 @@ @include font-size(var(--#{$prefix}tag-font-size)); font-weight: var(--#{$prefix}tag-font-weight); line-height: add(var(--#{$prefix}tag-font-size), .125rem); - color: var(--#{$prefix}body-color); - background-color: transparent; + color: var(--#{$prefix}tag-color); + background-color: var(--#{$prefix}tag-bg); border: var(--#{$prefix}tag-border-width) solid var(--#{$prefix}tag-border-color); @include border-radius(var(--#{$prefix}tag-border-radius), var(--#{$prefix}tag-border-radius)); diff --git a/scss/_variables.scss b/scss/_variables.scss index 95f0f85283..e1074aa953 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -2325,6 +2325,9 @@ $footer-gap-xl: $spacer * 1.7 !default; // Tags // scss-docs-start tag-variables +$tag-color: var(--#{$prefix}body-color) !default; +$tag-bg: var(--#{$prefix}body-bg) !default; + $tag-gap: map-get($spacers, 1) !default; $tag-font-shift: $spacer * .1 !default; $tag-font-weight: $font-weight-bold !default; @@ -2343,7 +2346,6 @@ $tag-active-color: var(--#{$prefix}highlight-color) !default; $tag-disabled-color: var(--#{$prefix}disabled-color) !default; $tag-border-color: var(--#{$prefix}border-color-translucent) !default; $tag-active-decoration-color: var(--#{$prefix}highlight-bg) !default; - // scss-docs-end tag-variables // scss-docs-start tag-sm-variables diff --git a/site/content/docs/5.3/dark-mode.md b/site/content/docs/5.3/dark-mode.md index a51b1a02c4..cf0abfaf6e 100644 --- a/site/content/docs/5.3/dark-mode.md +++ b/site/content/docs/5.3/dark-mode.md @@ -672,7 +672,7 @@ Additional variables for dark-mode (temporary)
  • Dismissible tag @@ -680,7 +680,7 @@ Additional variables for dark-mode (temporary)
  • Input @@ -715,7 +715,7 @@ Additional variables for dark-mode (temporary)

  • Dismissible tag @@ -723,7 +723,7 @@ Additional variables for dark-mode (temporary)
  • Input @@ -758,7 +758,7 @@ Additional variables for dark-mode (temporary)

  • Dismissible tag @@ -766,7 +766,7 @@ Additional variables for dark-mode (temporary)
  • Input @@ -778,38 +778,38 @@ Additional variables for dark-mode (temporary)

    Dark theme on component

    -
      +
      • - +
      • -
      • -
      • 1. Introduction
      • +
      • 1. Introduction
      • - + Dismissible tag
      • -
      • +
      • Dismissible tag
      • -

        +

        Input @@ -821,38 +821,38 @@ Additional variables for dark-mode (temporary)

        Light theme on component

        -
          +
          • - +
          • -
          • -
          • 1. Introduction
          • +
          • 1. Introduction
          • - + Dismissible tag
          • -
          • +
          • Dismissible tag
          • -

            +

            Input