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

Correction d'un bug d'accessibilité sur le composant alerte #59

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

Ash-Crow
Copy link
Collaborator

@Ash-Crow Ash-Crow commented Dec 5, 2023

🎯 Objectif

Wagtail signale un problème d'accessibilité des titres pour le bloc alerte :

Mauvais usage de paragraphes comme titres. Utilisez plutôt une balise titre.

🔍 Implémentation

  • Ajout d'un champ heading_tag dans le bloc alerte (similaire au bloc callout)

⚠️ Informations supplémentaires

  • Le problème se trouve aussi sur les messages Django mais ils sont actuellement rendus au-dessus du titre h1 de la page, la résolution semble plus compliquée

🏕 Amélioration continue

  • les variables HEADING_CHOICES et LEVEL_CHOICES sont maintenant déplacées en tant que constantes au début du fichier.

@Ash-Crow Ash-Crow self-assigned this Dec 5, 2023
@Ash-Crow Ash-Crow added the bug Quelque chose ne fonctionne pas label Dec 5, 2023
("error", "Erreur"),
("success", "Succès"),
("info", "Information"),
("warning", "Attention"),
Copy link
Member

Choose a reason for hiding this comment

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

J'ai l'impression qu'"Attention" c'est un peu étrange. Est-ce que "Avertissement" ça te conviendrait ?

@mjeammet mjeammet merged commit 8f23fee into main Dec 5, 2023
4 checks passed
@mjeammet mjeammet deleted the alerts branch December 5, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Quelque chose ne fonctionne pas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants