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

Alert Images Lack Alternate Text #403

Open
andrewnordlund opened this issue Feb 1, 2022 · 2 comments
Open

Alert Images Lack Alternate Text #403

andrewnordlund opened this issue Feb 1, 2022 · 2 comments

Comments

@andrewnordlund
Copy link
Member

andrewnordlund commented Feb 1, 2022

For the alerts on https://wet-boew.github.io/wet-boew-styleguide/design/alerts-en.html each type: Success, Info, Alert, and Danger.

The type of alert is identified in 2 or 3 ways:

  1. The shape of the icon
  2. The colour of the icon and background of the text and left side of the <div>.
  3. Optionally a <h#> heading

Since the heading is optional, then the only identifying features are an image and a colour. If the heading is missing, how is a blind user to know they're in an alert section, and what kind of section they're in?

In its current implementation, doesn't this fail F3: Failure of Success Criterion 1.1.1 due to using CSS to include images that convey important information?

@ghost
Copy link

ghost commented Feb 2, 2022

There already a discussion about this in the main repo.

wet-boew/wet-boew#8886

I am just a volunteer on this GitHub project.

@andrewnordlund
Copy link
Member Author

andrewnordlund commented Aug 15, 2023

No, the issue at wet-boew/wet-boew#8886 is not a duplicate of this issue.

That issue is about use of role="alert" in the alert.

This is about providing SR users with an equivalent of the visual cues you see on the screen. If you have a warning (https://wet-boew.github.io/wet-boew-styleguide/design/alerts-en.html#warning), sighted users can see the icon and perhaps the colour and know they're in a section giving a warning. A blind user won't get that information, unless it's part of the text.

Since the icon (warning, info, etc.) does convey information, then equivalent information needs to be given to screen reader users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant