Display the brand text in alt attribute in email when defined#105
Display the brand text in alt attribute in email when defined#105jimleroyer wants to merge 2 commits intomasterfrom
Conversation
|
Are we sure this is the correct way to address a11y? It seems to me that if there's text under the logo then the logo is decorative, and should not have alt text (https://www.w3.org/WAI/tutorials/images/decorative/). |
|
@sastels I read the link and it seems it is meant for decorative images, which I think the logo is meant for informative purpose. Also I learned during my a11y work on Notify that images should be properly tagged on their purpose ideally (except decorative, i.e. "a bullet" would be annoying), so in this specific case, we would inform the user this is a 'logo' of the organization, followed by the chosen title of the organization (that is, if brand text would be used for its initial intent -- which we might drop depending on product conversation and latest decisions/takes). We can talk offline as I think there are lots going on around this despite being such a small change. It highly depends on @stephenyates-cds takes too on this so we'll know better tomorrow. |
Summary | Résumé
We have a bug where the
altattribute is empty when the brand text is defined. Our expectation would be to have thealtattribute always defined for accessibility purpose. We elected to use the brand text for now, which is also used for the subtext of the logo when defined. Ideally, we might want to have a dedicated field for accessibility text in the admin to source it through the generated branding in emails.Test instructions | Instructions pour tester la modification
Send an email with the brand text defined. The
altattribute should be the same as the brand text, whereas previous to these changes, it was blank with an empty space.Unresolved questions / Out of scope | Questions non résolues ou hors sujet
altattribute? At the moment, the brand subtitle text andaltattribute will be the same but that would not be following proper accessibility standard.Reviewer checklist | Liste de vérification du réviseur
This is a suggested checklist of questions reviewers might ask during their
review | Voici une suggestion de liste de vérification comprenant des questions
que les réviseurs pourraient poser pendant leur examen :
langues officielles?
une baisse de la quantité de code couvert par les tests automatisés?
fonctionnalité existante?
que ça devrait être divisé en de plus petites demandes de tirage (« pull
requests ») afin de réduire le risque lié aux modifications?
modification de la politique de confidentialité?
préoccupations liées à la sécurité?
façon importante la performance?
risque d’utiliser des dépendances ajoutées?
setup, etc.) | Faudra-t-il mettre à jour la documentation à la suite de ce
changement (fichier README, etc.)?