Merge pull request #8510 from demarches-simplifiees/a11y-8073-tags-used-for-presentation

a11y : sign in remove tags used only for presentation
This commit is contained in:
Colin Darie 2023-01-30 10:31:41 +01:00 committed by GitHub
commit 840b34890d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 13 deletions

View file

@ -11,7 +11,6 @@
// The procedure description can still be read from the /commencer // The procedure description can still be read from the /commencer
// pages. // pages.
@media (max-width: $two-columns-breakpoint) { @media (max-width: $two-columns-breakpoint) {
.procedure-preview,
.agent-intro { .agent-intro {
display: none; display: none;
} }

View file

@ -17,7 +17,8 @@ $procedure-description-line-height: 22px;
} }
.simple { .simple {
font-size: 24px; margin-bottom: 0.2rem;
font-size: 1.5rem;
color: $blue-france-500; color: $blue-france-500;
font-weight: bold; font-weight: bold;
} }
@ -143,6 +144,14 @@ $procedure-description-line-height: 22px;
} }
} }
.no-procedure-presentation {
margin-bottom: 1.6rem;
p {
margin: 0;
}
}
.procedure-context-content { .procedure-context-content {
@media (max-width: $procedure-context-breakpoint) { @media (max-width: $procedure-context-breakpoint) {
input[type=submit] { input[type=submit] {

View file

@ -1,15 +1,10 @@
.no-procedure .no-procedure
= image_tag "landing/hero/dematerialiser.svg", class: "paperless-logo", alt: "" = image_tag "landing/hero/dematerialiser.svg", class: "paperless-logo", alt: ""
.baseline.center .baseline.center
%p .no-procedure-presentation
%span.simple= t('.line1') %p.simple= t('.line1')
%br %p= t('.line2')
= t('.line2') %p= t('.line3')
%br
= t('.line3')
%hr %hr
%p %p.small-simple= t('.are_you_new', app_name: APPLICATION_NAME.gsub("-","‑")).html_safe
%span.small-simple= t('.are_you_new', app_name: APPLICATION_NAME.gsub("-","‑")).html_safe
%br
%br
= link_to t('views.users.sessions.new.find_procedure'), t("links.common.faq.comment_trouver_ma_demarche_url"), title: new_tab_suffix(t('views.users.sessions.new.find_procedure')), class: "fr-btn fr-btn--secondary", **external_link_attributes = link_to t('views.users.sessions.new.find_procedure'), t("links.common.faq.comment_trouver_ma_demarche_url"), title: new_tab_suffix(t('views.users.sessions.new.find_procedure')), class: "fr-btn fr-btn--secondary", **external_link_attributes