Skip to content

Commit

Permalink
fix: a11y contrast color in view and edit for some blocks (#812)
Browse files Browse the repository at this point in the history
* fix: secondary color contrast link block contacts

* fix: CTA link contrast

* fix: contrast link for alert blocks

* fix: block icons link contrast color

* fix countdown block link contrast

* fix: styles

* fix_ contacts blocks style in subsites

* fix: contacts blocks

* chore: Update RELEASE.md

---------

Co-authored-by: Giulia Ghisini <[email protected]>
Co-authored-by: Martina Bustacchini <[email protected]>
Co-authored-by: Giulia Ghisini <[email protected]>
  • Loading branch information
4 people authored Nov 26, 2024
1 parent e65be2d commit 9d8538b
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 16 deletions.
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
- Rimossa dal CT Evento la data di scadenza del CT per evitare confusione con le date effettive dell'evento
- Durante la ricerca nel sito dalla popup che compare cliccando sul bottone 'Cerca' nella testa del sito, viene mostrato un loader in overlay durante il caricamento della pagina dei risultati perchè questo potrebbe richiedere un po' di tempo. Prima di questa modifica non era chiaro se la ricerca fosse iniziata.
- Nel CT Evento per una rassegna, se gli eventi figli hanno una ricorrenza o un periodo di date impostato, il range di date verrà mostrato nella card all'interno dell'evento padre.
- uniformato il colore dei link tra modalità di edit e view in alcuni blocchi

### Novità

Expand Down
17 changes: 6 additions & 11 deletions src/theme/ItaliaTheme/Blocks/_alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
}
}

.public-ui {
.public-ui,
body.cms-ui .public-ui {
.block.alertblock,
.alertblock {
.full-width {
Expand All @@ -49,11 +50,8 @@
h3,
h4,
h5,
h6 {
color: $alert-danger-text;
}

a {
h6,
a:not(.btn) {
color: $alert-danger-text;
}
}
Expand All @@ -67,11 +65,8 @@
h3,
h4,
h5,
h6 {
color: $alert-warning-text;
}

a {
h6,
a:not(.btn) {
color: $alert-warning-text;
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/theme/ItaliaTheme/Blocks/_contacts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
.description h4,
.description h5,
.description h6,
.description a {
.description a:not(.btn) {
color: $primary-text;
}
}
Expand All @@ -41,7 +41,8 @@
.description h3,
.description h4,
.description h5,
.description h6 {
.description h6,
.description a:not(.btn) {
color: $secondary-text;
}
}
Expand Down
11 changes: 10 additions & 1 deletion src/theme/ItaliaTheme/Blocks/_countdown.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
body.cms-ui,
body.public-ui {
.block.count_down .public-ui {
a:not(.btn) {
color: $white; //to force color in cms-ui
}
}
}

.block.count_down .public-ui {
color: $white;

Expand All @@ -6,7 +15,7 @@
h4,
h5,
h6,
a {
a:not(.btn) {
color: $white;
}

Expand Down
7 changes: 6 additions & 1 deletion src/theme/ItaliaTheme/Blocks/_ctaBlock.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@
h2,
h3 {
margin: 0 0 1.5rem;
color: $secondary-text;
font-size: 2.25rem;
}
h2,
h3,
a:not(.btn) {
color: $secondary-text;
}

p:last-of-type {
margin-bottom: 0;
Expand Down Expand Up @@ -98,6 +102,7 @@

.cta-tile-text {
&,
a,
h3 {
color: #fff;
}
Expand Down
2 changes: 1 addition & 1 deletion src/theme/ItaliaTheme/Blocks/_iconBlocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
h4,
h5,
h6,
a {
a:not(.btn) {
color: #fff;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
.description {
color: $subsite-primary-text;
}
a:not(.btn) {
color: currentColor;
}
}

.card {
Expand Down

0 comments on commit 9d8538b

Please sign in to comment.