Merge pull request #9752 from demarches-simplifiees/improve-dark-mode-high-contrast-windows-ldu

[accessibilité] Améliore la lisibilité du site en mode Contraste élevé de Windows
This commit is contained in:
Lisa Durand 2023-11-27 15:55:42 +00:00 committed by GitHub
commit 7a4c22bc63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,3 +138,25 @@ button.fr-tag-bug {
align-items: flex-end;
}
}
// improve readability in Windows High Contrast Mode
@media screen and (forced-colors: active) {
.fr-input,
.fr-select,
.fr-btn {
border: 2px solid var(--border-action-high-grey);
}
.fr-radio-group input[type="radio"] {
opacity: 1;
}
.fr-tabs__tab[aria-selected=true]:not(:disabled) {
border: 5px solid var(--border-action-high-grey);
}
.fr-tabs__tab {
border: 2px solid var(--border-action-high-grey);
}
}