Skip to content

Commit

Permalink
fix: fixed btn-primary icon with focus-visible (#565)
Browse files Browse the repository at this point in the history
* fix: fixed btn-primary icon with focus-visible

* docs: updated release.md
  • Loading branch information
SaraBianchi authored Mar 4, 2024
1 parent 3244fdd commit 0bbb6b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
- La tendina delle select nel blocco Form non si sovrappone più ai campi sottostanti.
- Sistemato alert di errore nel blocco Form che nascondeva il form quando un campo non era valido, ora continua a visualizzarsi anche la form.
- Migliorato il testo alternativo per il logo NextGenerationEU nel footer.
- Sistemato il contrasto delle icone nei pulsanti "primary" quando si attiva il focus col tab da tastiera

## Versione 11.5.1 (19/02/2024)

Expand Down
1 change: 1 addition & 0 deletions src/theme/bootstrap-override/_bootstrap-italia-site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
8 changes: 8 additions & 0 deletions src/theme/bootstrap-override/bootstrap-italia/_buttons.scss
Original file line number Diff line number Diff line change
@@ -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);
}
}
}

0 comments on commit 0bbb6b5

Please sign in to comment.