Skip to content
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

Merged
merged 30 commits into from
Jun 14, 2023
Merged

Conversation

nicolaskempf57
Copy link
Contributor

@nicolaskempf57 nicolaskempf57 commented May 15, 2023

@nicolaskempf57 nicolaskempf57 requested a review from maudetes June 5, 2023 12:43
Copy link
Contributor

@maudetes maudetes left a 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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is that for?

Copy link
Contributor Author

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.

Copy link
Contributor

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

  • , but we don't have any list showing right now or with this PR right?

  • Copy link
    Contributor Author

    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.

    Copy link
    Contributor

    @maudetes maudetes Jun 13, 2023

    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.

    Copy link
    Contributor Author

    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>.

    @nicolaskempf57
    Copy link
    Contributor Author

    • some links are now underlined (license, orga on dataset card), has it been made on purpose?

    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.

    @nicolaskempf57 nicolaskempf57 requested a review from maudetes June 13, 2023 07:30
    Copy link
    Contributor

    @maudetes maudetes left a 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 :)

    @nicolaskempf57 nicolaskempf57 merged commit 7b75884 into datagouv:master Jun 14, 2023
    @nicolaskempf57 nicolaskempf57 deleted the feat/update-dsfr-to-1.7 branch June 14, 2023 12:11
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    Mise à jour du DSFR v1.6 & 1.7
    2 participants