Skip to content
Snippets Groups Projects
Commit 1559ab85 authored by Gabor Hojtsy's avatar Gabor Hojtsy
Browse files

Issue #2938643 by markconroy, andrewmacpherson, David_Rothstein, yoroy: Umami...

Issue #2938643 by markconroy, andrewmacpherson, David_Rothstein, yoroy: Umami Banner Block does not have accessible text alternative at wide viewport
parent 6512f12b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -73,6 +73,16 @@ ...@@ -73,6 +73,16 @@
} }
.block-type-banner-block .field--name-field-banner-image { .block-type-banner-block .field--name-field-banner-image {
display: none; /**
* We need to ensure that the alt text on the image is accessible to
* screenreaders, so, when on large screens, let's give this the same CSS
* as the .visually-hidden class has.
*/
position: absolute !important;
clip: rect(1px,1px,1px,1px);
overflow: hidden;
height: 1px;
width: 1px;
word-wrap: normal;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment