style(dsfr/link): doc for explicitly disabling href underlined enabled by dsfr

This commit is contained in:
Colin Darie 2022-09-20 17:33:12 +02:00
parent b21ee46dc2
commit cffa8d0b69
2 changed files with 7 additions and 3 deletions

View file

@ -1,6 +1,10 @@
@import "colors";
// override default text underline of dsfr
body [href]:not([class^="fr-"]):not(.fr-footer__bottom-copy *) {
// Hacky override default text underline of DSFR because we don't want to underline links in our legacy UI.
// We don't match links having a dsfr class (prefixed by fr-).
// However DSFR components may contain links without fr- class on them,
// so these links can be artificially matched by adding any fr-class on them, (like fr-underlined)
body [href]:not([class^="fr-"]) {
background-image: none;
}

View file

@ -84,5 +84,5 @@
.fr-footer__bottom-copy
%p
Sauf mention contraire, tous les contenus de ce site sont sous
%a{ href: "https://github.com/etalab/licence-ouverte/blob/master/LO.md", target:"_blank" } licence etalab-2.0
%a.fr-underlined{ href: "https://github.com/etalab/licence-ouverte/blob/master/LO.md", target:"_blank" } licence etalab-2.0
%br