Skip to content

Commit

Permalink
fix: a11y focus cms-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Dec 16, 2024
1 parent 57589e3 commit 8a3ea30
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
- ...
-->

## Versione xxx (xx/xx/xxxx)

### Migliorie

- sistemata l'accessibilità riguardante il focus lato operatore.

## Versione 11.25.3 (12/12/2024)

### Migliorie
Expand Down
4 changes: 4 additions & 0 deletions src/theme/ItaliaTheme/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ iframe {
// margin-right: 0.5rem;
// }

svg.external-link {
fill: currentColor;
}

.slate-editor-link {
clear: both;

Expand Down
8 changes: 8 additions & 0 deletions src/theme/_cms-ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ body.cms-ui {
font-size: 16px;
line-height: 1.5;

:focus:not(.focus--mouse),
input[type='checkbox']:focus + label:before {
outline: 2px solid #000 !important;
outline-offset: 2px;
border: none !important;
box-shadow: 0 0 0 2px #fff !important;
}

@include media-breakpoint-up(sm) {
font-size: 18px;
line-height: 1.555;
Expand Down

0 comments on commit 8a3ea30

Please sign in to comment.