From abbd85cde5c216d10e06f085644a451308965bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n?= <41774881+xentenza@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:08:52 +0100 Subject: [PATCH] Accessible colors - switched $leman to $canard - added $canard-dark color --- assets/components/atoms/button/button.scss | 14 +++++++------- assets/config/bootstrap-variables.scss | 19 ++++++++++--------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/assets/components/atoms/button/button.scss b/assets/components/atoms/button/button.scss index 493dbe2e..75acefae 100644 --- a/assets/components/atoms/button/button.scss +++ b/assets/components/atoms/button/button.scss @@ -124,30 +124,30 @@ input[type="button"] { } .btn-tertiary { - background: $leman; + background: $canard; font-weight: $font-weight-bold; color: $white; &:hover, &.hover { - background: $canard; - border-color: $canard; + background: $canard-dark; + border-color: $canard-dark; color: $white; } &:focus, &:focus-visible, &.focus { - outline-color: $canard !important; + outline-color: $canard-dark !important; color: $white; } &:not(:disabled):not(.disabled):active, &:not(:disabled):not(.disabled).active { // ugly ↓ - // background: linear-gradient(to bottom, $canard 0%, $red 100%); - background: color.adjust($canard, $lightness: -10%); - border-color: color.adjust($canard, $lightness: -10%); + // background: linear-gradient(to bottom, $canard-dark 0%, $red 100%); + background: color.adjust($canard-dark, $lightness: -10%); + border-color: color.adjust($canard-dark, $lightness: -10%); } &:disabled, diff --git a/assets/config/bootstrap-variables.scss b/assets/config/bootstrap-variables.scss index bc0d09a5..6b7848f9 100644 --- a/assets/config/bootstrap-variables.scss +++ b/assets/config/bootstrap-variables.scss @@ -10,15 +10,16 @@ // // stylelint-disable -$white: #fff !default; -$gray-100: #e6e6e6 !default; -$gray-200: #d5d5d5 !default; -$gray-300: #c1c1c1 !default; -$gray-500: #8e8e8e !default; -$gray-600: #707070 !default; -$black: #212121 !default; -$leman: #00A79F !default; -$canard: #007480 !default; +$white: #fff !default; +$gray-100: #e6e6e6 !default; +$gray-200: #d5d5d5 !default; +$gray-300: #c1c1c1 !default; +$gray-500: #8e8e8e !default; +$gray-600: #707070 !default; +$black: #212121 !default; +$leman: #00A79F !default; +$canard: #007480 !default; +$canard-dark: #004248 !default; $grays: () !default; $grays: map-merge((