Merge pull request #10680 from demarches-simplifiees/a11y-fix-demarche-header

Refonte du menu d'aide
This commit is contained in:
Colin Darie 2024-09-09 14:17:50 +00:00 committed by GitHub
commit ab3139c2ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 130 additions and 81 deletions

View file

@ -243,6 +243,57 @@ ul.dropdown-items {
margin-bottom: 0;
}
// Apply custom styles to DSFR fr-translate component
.fr-translate__btn.fr-btn.help-btn::before {
content: none;
}
.help-content.fr-menu ul.fr-menu__list {
--text-decoration: underline;
text-align: left;
font-size: 1rem;
@media (min-width: 62em) {
font-size: 0.875rem;
padding: 0;
width: 360px;
}
}
.help-content.fr-menu ul.fr-menu__list li {
padding: 0.75rem 1rem;
@media (min-width: 62em) {
padding-right: 1rem;
padding-left: 1rem;
}
}
.help-content.fr-menu ul.fr-menu__list li:not(:last-child) {
@media (min-width: 62em) {
border-bottom: 1px solid $border-grey;
}
}
.help-content.fr-menu ul.fr-menu__list {
h1,
p {
font-size: inherit;
line-height: inherit;
}
dd {
word-break: break-all;
}
}
.help-content a[href]:hover,
.help-content a[href]:active {
@media (hover: hover) and (pointer: fine) {
--text-decoration: none;
}
}
.dropdown-items {
li {
display: flex;

View file

@ -7,10 +7,6 @@
}
}
.help-dropdown-title {
font-weight: bold;
}
.dropdown-items li.help-dropdown-service {
cursor: default;
@ -23,14 +19,3 @@
color: $blue-france-500;
}
}
.help-dropdown-service-action {
margin-top: $default-padding;
margin-bottom: $default-spacer;
}
.help-dropdown-service-item {
margin-top: $default-spacer;
line-height: 18px;
}