Merge pull request #5392 from betagouv/fix-CI-accessibility-errors
Fix CI accessibility errors
This commit is contained in:
commit
b2aa90b729
5 changed files with 21 additions and 7 deletions
|
@ -55,3 +55,17 @@
|
|||
@extend .without-continuation;
|
||||
}
|
||||
}
|
||||
|
||||
// Labels that we only want for screen readers
|
||||
// https://www.coolfields.co.uk/2016/05/text-for-screen-readers-only-updated/
|
||||
.screen-reader-text {
|
||||
border: none;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
clip-path: inset(50%);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
width: 1px;
|
||||
overflow: hidden;
|
||||
position: absolute !important;
|
||||
word-wrap: normal !important;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
= form.label champ.main_value_name do
|
||||
= render partial: 'shared/dossiers/editable_champs/champ_label_content', locals: { champ: champ, seen_at: seen_at }
|
||||
- else
|
||||
%h4.form-label
|
||||
.form-label.mb-4
|
||||
= render partial: 'shared/dossiers/editable_champs/champ_label_content', locals: { champ: champ, seen_at: seen_at }
|
||||
|
||||
- if champ.description.present?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue