From 7d52a666519c704c970f003eb419adfdd04b098c Mon Sep 17 00:00:00 2001 From: crissdev Date: Sun, 9 Oct 2022 20:40:47 +0300 Subject: [PATCH] v5.2.2 --- README.md | 2 +- _buttons.scss | 10 ++++++++-- _toasts.scss | 2 ++ _variables.scss | 2 +- mixins/_banner.scss | 2 +- mixins/_table-variants.scss | 4 ++-- package.json | 2 +- 7 files changed, 16 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6a6addc..9a83bd3 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ For simplicity, this project will use the same version numbers as Bootstrap. ## Changelog -https://github.com/twbs/bootstrap/releases/tag/v5.2.1 +https://github.com/twbs/bootstrap/releases/tag/v5.2.2 ## Copyright and license diff --git a/_buttons.scss b/_buttons.scss index c2d0773..f2c4c13 100644 --- a/_buttons.scss +++ b/_buttons.scss @@ -40,14 +40,20 @@ @include box-shadow(var(--#{$prefix}btn-box-shadow)); @include transition($btn-transition); - :not(.btn-check) + &:hover, - &:first-child:hover { + &:hover { color: var(--#{$prefix}btn-hover-color); text-decoration: if($link-hover-decoration == underline, none, null); background-color: var(--#{$prefix}btn-hover-bg); border-color: var(--#{$prefix}btn-hover-border-color); } + .btn-check + &:hover { + // override for the checkbox/radio buttons + color: var(--#{$prefix}btn-color); + background-color: var(--#{$prefix}btn-bg); + border-color: var(--#{$prefix}btn-border-color); + } + &:focus-visible { color: var(--#{$prefix}btn-hover-color); @include gradient-bg(var(--#{$prefix}btn-hover-bg)); diff --git a/_toasts.scss b/_toasts.scss index c34e49b..2ce378d 100644 --- a/_toasts.scss +++ b/_toasts.scss @@ -38,6 +38,8 @@ } .toast-container { + --#{$prefix}toast-zindex: #{$zindex-toast}; + position: absolute; z-index: var(--#{$prefix}toast-zindex); width: max-content; diff --git a/_variables.scss b/_variables.scss index 07ce922..e021836 100644 --- a/_variables.scss +++ b/_variables.scss @@ -1256,7 +1256,7 @@ $card-group-margin: $grid-gutter-width * .5 !default; // scss-docs-start accordion-variables $accordion-padding-y: 1rem !default; $accordion-padding-x: 1.25rem !default; -$accordion-color: var(--#{$prefix}body-color) !default; +$accordion-color: $body-color !default; // Sass variable because of $accordion-button-icon $accordion-bg: $body-bg !default; $accordion-border-width: $border-width !default; $accordion-border-color: var(--#{$prefix}border-color) !default; diff --git a/mixins/_banner.scss b/mixins/_banner.scss index 8b859ab..8dacb03 100644 --- a/mixins/_banner.scss +++ b/mixins/_banner.scss @@ -1,6 +1,6 @@ @mixin bsBanner($file) { /*! - * Bootstrap #{$file} v5.2.1 (https://getbootstrap.com/) + * Bootstrap #{$file} v5.2.2 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors * Copyright 2011-2022 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) diff --git a/mixins/_table-variants.scss b/mixins/_table-variants.scss index ae43ec6..5fe1b9b 100644 --- a/mixins/_table-variants.scss +++ b/mixins/_table-variants.scss @@ -5,11 +5,11 @@ $hover-bg: mix($color, $background, percentage($table-hover-bg-factor)); $striped-bg: mix($color, $background, percentage($table-striped-bg-factor)); $active-bg: mix($color, $background, percentage($table-active-bg-factor)); - $border-color: mix($color, $background, percentage($table-border-factor)); + $table-border-color: mix($color, $background, percentage($table-border-factor)); --#{$prefix}table-color: #{$color}; --#{$prefix}table-bg: #{$background}; - --#{$prefix}table-border-color: #{$border-color}; + --#{$prefix}table-border-color: #{$table-border-color}; --#{$prefix}table-striped-bg: #{$striped-bg}; --#{$prefix}table-striped-color: #{color-contrast($striped-bg)}; --#{$prefix}table-active-bg: #{$active-bg}; diff --git a/package.json b/package.json index 58be2f9..db9544a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bootstrap-scss", - "version": "5.2.1", + "version": "5.2.2", "description": "Bootstrap's SCSS files (only)", "main": "bootstrap.scss", "repository": {