Skip to content

Commit

Permalink
Us 42249 v3 a11y react dates focus date (#344)
Browse files Browse the repository at this point in the history
* fix: fixed focus styles for CalendarMonth

* chore: added release info
  • Loading branch information
sabrina-bongiovanni authored Sep 19, 2023
1 parent c2e9aaa commit a14a178
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@
### Fix

- Sistemato l'allineamento degli elementi nel blocco Contatti: se ci sono meno di tre elementi l'allineamento è centrato, se ce ne sono più di 3 l'allineamento è a sinistra.
- Migliorata accessibilità del calendario nel blocco ricerca Eventi e ricerca Bandi
15 changes: 15 additions & 0 deletions src/theme/ItaliaTheme/Widgets/_react-dates-override.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
table.CalendarMonth_table {
border-collapse: separate;

td.CalendarDay__selected:focus {
border: 1px solid white;
border-radius: 100%;
outline: 2px solid $focus-outline-color;
}

td.CalendarDay__default:focus {
border: none !important;
box-shadow: none !important;
outline: 2px solid $focus-outline-color !important;
}
}
1 change: 1 addition & 0 deletions src/theme/site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
@import 'ItaliaTheme/Widgets/blocksWidget';
@import 'ItaliaTheme/Widgets/subsiteSocialLinks';
@import 'ItaliaTheme/Widgets/reactSelect';
@import 'ItaliaTheme/Widgets/react-dates-override';
@import 'ItaliaTheme/Widgets/textInput';
@import 'ItaliaTheme/Widgets/dataGridWidget';
@import 'ItaliaTheme/Widgets/canaleDigitaleWidget';
Expand Down

0 comments on commit a14a178

Please sign in to comment.