Merge pull request #8629 from demarches-simplifiees/a11y-8118-script-folder-creation

a11y : add scrolling functionnality for description procedure Closes #8629
This commit is contained in:
Julie Salha 2023-02-16 11:52:02 +01:00 committed by GitHub
commit 707f50d314
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View file

@ -100,7 +100,7 @@ $procedure-description-line-height: 22px;
// If the text exceeds the max-height,
// truncate it and displays the "Read more" button.
&.read-more-enabled {
overflow: hidden;
overflow: auto;
border-bottom: 1px solid $border-grey;
+ .read-more-button {

View file

@ -22,6 +22,6 @@
%p Vous pouvez déposer vos dossiers jusquau #{procedure_auto_archive_datetime(procedure)}.
.procedure-description
.procedure-description-body.read-more-enabled.read-more-collapsed
.procedure-description-body.read-more-enabled.read-more-collapsed{ tabindex: "0", role: "region", "aria-label": t('views.users.dossiers.identite.description') }
= h string_to_html(procedure.description, allow_a: true)
= button_tag "Afficher la description complète", class: 'button read-more-button'

View file

@ -265,6 +265,7 @@ en:
identity_data: Identity data
all_required: All fields are required.
civility: Civility
description: Description of the procedure
first_name: First Name
last_name: Last Name
birthdate: Date de naissance

View file

@ -261,6 +261,7 @@ fr:
identity_data: Données didentité
all_required: Tous les champs sont obligatoires.
civility: Civilité
description: Description de la démarche
first_name: Prénom
last_name: Nom
birthdate: Date de naissance