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

Fix tooltip accessibility #259

Merged

Conversation

nicolaskempf57
Copy link
Contributor

@nicolaskempf57 nicolaskempf57 commented May 23, 2023

This improves the accessibility of our tooltip implementation, adds a new toggletip component and uses the toggletip in place of existing tooltips.

Close datagouv/data.gouv.fr#924

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.

Seems to work nicely :)

For later, do you think that we still need to use the hack we introduced over there on z-index results ?

nicolaskempf57 and others added 2 commits June 6, 2023 10:25
…Toggletip.mdx

Co-authored-by: maudetes <maudet.estelle@gmail.com>
Co-authored-by: maudetes <maudet.estelle@gmail.com>
@nicolaskempf57
Copy link
Contributor Author

Seems to work nicely :)

For later, do you think that we still need to use the hack we introduced over there on z-index results ?

The hack is still necessary. It's due to the background click so to remove it we must remove the click on the card background and use a simpler flow with only click on links or buttons, like the DSFR card below with multiple interactive elements :

  • title to go to dataset
  • org name to go to the organization
  • toggletip to show the toggletip content

Xnapper-2023-06-06-10 30 55

@nicolaskempf57 nicolaskempf57 merged commit 25d87bb into datagouv:master Jun 6, 2023
7 checks passed
@nicolaskempf57 nicolaskempf57 deleted the fix/tooltip-accessibility branch June 6, 2023 09:50
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.

Accessibilité du tooltip score qualité
2 participants