-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dsfr #249
Update dsfr #249
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I have only minor comments!
- don't forget the changelog
- some links are now underlined (license, orga on dataset card), has it been made on purpose?
@@ -52,3 +52,8 @@ a:not([href]) { | |||
Menlo, Monaco, Consolas, | |||
monospace; | |||
} | |||
|
|||
:where(nav li):before { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is that for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our Sanitize.css
adds a •
to the left of <li>
. This rules was never triggered before but it adds really wide padding to our list of lang. There are PR in sanitize to fix this (csstools/sanitize.css#227, csstools/sanitize.css#234) but the project seems inactive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember what we've said before on
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only for <li>
in <nav>
and it didn't have this side effect on our header. But, we now have a list in the new translate component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh my, I see. But <li>
are not showing correctly, example on https://www.data.gouv.fr/fr/datasets/table-de-passage-geographie-2022/, where Dans la cellule D2,
, etc. is a <li>
showing as a raw string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We must add number back to <ol>
in markdown. We already did it for <ul>
.
These wasn't possible before due to how DSFR displayed underlines. But they changed it so I added them. Orga links fail RGAA criterion 3.1 without the underline. For license, it's valid without underline but you can't know that it's a link without it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm good with this PR 👏
We can deal with <ol>
support now or later :)
Close datagouv/data.gouv.fr#865