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 Working Example ARIA24 #1016

Closed
wants to merge 4 commits into from
Closed

Update Working Example ARIA24 #1016

wants to merge 4 commits into from

Conversation

JAWS-test2
Copy link
Contributor

@JAWS-test2 JAWS-test2 commented Jan 26, 2020

Related to: #1007

I have changed the following:

  • frame (shadow) around the stars, so that contrast is sufficient
  • contrast between yellow and gray in the star increased, thus contrast greater than 3:1
  • all font icons marked with aria-hidden=true, and aria-label removed
  • alternative text of the icons in the source code as text (class=sr-only), so that the text is also visible without CSS (see F87)

If these changes are accepted, I would also change the ARIA24 file to update the source code examples

Base automatically changed from master to main March 5, 2021 20:42
@stevefaulkner stevefaulkner self-requested a review October 18, 2024 15:56
Copy link

netlify bot commented Nov 8, 2024

Deploy Preview for wcag2 ready!

Name Link
🔨 Latest commit 951933a
🔍 Latest deploy log https://app.netlify.com/sites/wcag2/deploys/67cb143457e03a0008c3a3de
😎 Deploy Preview https://deploy-preview-1016--wcag2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ljoakley ljoakley self-assigned this Jan 10, 2025
@ljoakley ljoakley removed their assignment Jan 10, 2025
@patrickhlauke patrickhlauke self-assigned this Feb 28, 2025
@patrickhlauke
Copy link
Member

ARIA24 wants to illustrate how adding role="img" and aria-label="..." works as a way to both "signal" that a container is actually using a font icon, and how to then also provide a programmatic text alternative for it. This proposed PR instead removes the aria-label and adds .sr-only additional containers directly after them. I believe this goes way beyond (in a very idiosyncratic way) what ARIA24 tried to actually show. (incidentally, if you're doing aria-hidden="true" on the spans with the font icon, you can probably then just save yourself adding the role="img" in the first place ... in essence, this rewrite guts the whole purpose of ARIA24 and simply suggests hiding the font icon from AT and having a visually-hidden container after it). To me, that goes beyond a small tweak, and should be its own technique or something ("Using visually-hidden content...")

The one positive aspect (if the current examples do fail) is the strengthening of the colour contrast for the stars. This could be tackled as a standalone separate PR.

@patrickhlauke
Copy link
Member

As for the original #1007, it's a lengthy conversation that is worth re-examining, because I don't believe even this PR would have "fixed" the question there (I'm removing the "Fixes..." part of the original description from this for that reason, to avoid having #1007 auto-close if this is closed)

@mbgower mbgower requested a review from ljoakley March 7, 2025 16:31
@bruce-usab
Copy link
Contributor

Discussed on Backlog call 3/7. Lori agreed to review.

@mraccess77
Copy link

I agree with Patrick that any PR should not change the intent of ARIA24 which is to highlight how role img can be used to mark icon fonts for low vision users to avoid font replacement.

@ljoakley
Copy link
Contributor

ljoakley commented Mar 14, 2025

This has morphed into a total rewrite rather than an update. This technique adds hidden text, and it is addressing more than original issue. It is using HTML plus CSS rather than ARIA. This PR no longer closes #1007 and F87 is being revisited.

We would like to close this and open a separate PR to adopt the contrast between yellow and gray in the star, which improves the contrast greater than 3:1.

@patrickhlauke
Copy link
Member

Discussed in today's backlog meeting. TF agrees to close this PR. Made a separate PR to address the contrast issue in the working example #4293

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.

5 participants