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
[a11y][AAA] Link Purpose (Link Only) #147
Comments
Can you elaborate on the problem, for level-A link purpose? I don't think it's an instance of F63: Failure of Success Criterion 2.4.4 due to providing link context only in content that is not related to the link because we have context from the preceding heading, which is the recipe name...
|
You are right, thanks. I didn't see the part related to preceding headings (which should be in the programatically determined context list, I suppose). I'll retitle this issue to mark it AAA instead and we'll see if we want to invest some time fixing it or not. |
Oh, I just noticed an inconsistency in WCAG 2.0! The WCAG 2.0 Recommendation and Understanding SC 2.4.4 documents describe "programatically determined link context" in HTML like so:
There's no mention of preceding headings providing context here. However the testing procedure in F63: Failure of Success Criterion 2.4.4 due to providing link context only in content that is not related to the link describes it a bit differently. It DOES mention preceding headings as providing link context (emphasis mine):
WCAG 2.0 is 10 years old now, and predates the HTML5 elements like article and section, so maybe these WCAG definitions need an update. I think this discrepancy is worth filing an issue against WCAG in the W3C repo. |
Hi Folks, I'm a little muddled here. Do I need to do anything on this issue? |
@markconroy Not for now. We're in some doubt as to whether WCAG2 actually requires this at level A. The question is whether the preceding headings provide the context needed for level A. I think we need to research this, and ask the wider a11y community. |
I see we have a Drupal.org issue about this too - Umami Theme - follow-up - is a11y context needed for read more links? Be careful about filing follow-ups on D.o without referencing existing issues here. We're in danger of having parts of the discussion lost by taking in two places at once. It could make things harder to keep track of, and confusing for new contributors. |
Let's close this one here, not needed for MVP. I've marked the D.O issue as postponed maintainer needs more info |
[Summary rewritten according to @fuzzbomb first comment]
https://www.w3.org/TR/WCAG21/#link-purpose-link-only
The "view recipe" links fall into this criterion.
Take a look at the node's "read more" links provided by core to see how you can make better (
\Drupal\node\NodeViewBuilder::buildLinks
).The text was updated successfully, but these errors were encountered: