From 30314c734eb1fbec00cc3e110e3cc0ab10540303 Mon Sep 17 00:00:00 2001 From: Sara Bianchi Date: Mon, 4 Mar 2024 15:24:46 +0100 Subject: [PATCH] fix: fixed btn-primary icon with focus-visible --- src/theme/bootstrap-override/_bootstrap-italia-site.scss | 1 + .../bootstrap-override/bootstrap-italia/_buttons.scss | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 src/theme/bootstrap-override/bootstrap-italia/_buttons.scss diff --git a/src/theme/bootstrap-override/_bootstrap-italia-site.scss b/src/theme/bootstrap-override/_bootstrap-italia-site.scss index 94c5450fe..1fa6bb54a 100644 --- a/src/theme/bootstrap-override/_bootstrap-italia-site.scss +++ b/src/theme/bootstrap-override/_bootstrap-italia-site.scss @@ -100,6 +100,7 @@ @import 'bootstrap-italia/src/scss/custom/calendar'; @import 'bootstrap-italia/src/scss/custom/alert'; @import 'bootstrap-italia/src/scss/custom/buttons'; + @import './bootstrap-italia/buttons'; @import 'bootstrap-italia/src/scss/custom/font'; @import 'bootstrap-italia/src/scss/custom/forms'; @import 'bootstrap-italia/src/scss/custom/form-input-file'; diff --git a/src/theme/bootstrap-override/bootstrap-italia/_buttons.scss b/src/theme/bootstrap-override/bootstrap-italia/_buttons.scss new file mode 100644 index 000000000..10192acb7 --- /dev/null +++ b/src/theme/bootstrap-override/bootstrap-italia/_buttons.scss @@ -0,0 +1,8 @@ +button.btn.btn-primary:focus-visible, +.btn.btn-primary:focus-visible { + &:not(:hover) { + svg.icon { + fill: var(--bs-btn-hover-color); + } + } +}