From 0fd72b8837e752c86689b2e06b8ce00036a97f0e Mon Sep 17 00:00:00 2001 From: REJack Date: Mon, 9 Sep 2019 15:07:23 +0200 Subject: [PATCH] enhanced radio button group with `bg-*` - added active override for .btn.bg-* - added radio button group demo in pages/UI/buttons.html --- build/scss/_mixins.scss | 9 +++++++-- pages/UI/buttons.html | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/build/scss/_mixins.scss b/build/scss/_mixins.scss index 87d410f55..5b4838e66 100644 --- a/build/scss/_mixins.scss +++ b/build/scss/_mixins.scss @@ -314,10 +314,13 @@ color: darken(color-yiq($color), 7.5%); } + &:not(:disabled):not(.disabled):active, + &:not(:disabled):not(.disabled).active, &:active, &.active { + background-color: darken($color, 10%) !important; border-color: darken($color, 12.5%); - color: darken(color-yiq($color), 10%); + color: color-yiq(darken($color, 10%)); } } } @@ -344,11 +347,13 @@ color: darken(color-yiq($color), 7.5%); } + &:not(:disabled):not(.disabled):active, + &:not(:disabled):not(.disabled).active, &:active, &.active { @include bg-gradient-variant('&', darken($color, 10%)); border-color: darken($color, 12.5%); - color: darken(color-yiq($color), 10%); + color: color-yiq(darken($color, 10%)); } } } diff --git a/pages/UI/buttons.html b/pages/UI/buttons.html index 57fe45b87..693f2caa8 100644 --- a/pages/UI/buttons.html +++ b/pages/UI/buttons.html @@ -1917,6 +1917,42 @@ + + +
+
+

Radio Button Group

+
+
+

Radio Button Group with .btn-secondary

+
+ + + +
+ +

Radio Button Group with .bg-olive

+
+ + + +
+
+ +
+