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

Modify G65 to support implementing current location in a breadcrumb trail as a link with aria-current="page" #3948

Closed
mcking65 opened this issue Jul 5, 2024 · 3 comments · Fixed by #3951

Comments

@mcking65
Copy link

mcking65 commented Jul 5, 2024

The tests in G65: Providing a breadcrumb trail | WAI | W3C
prohibit authors from implementing the current location in a breadcrumb trail as a link.

  1. For a breadcrumb trail that does include the current location:
    1. Check that all elements except for the current location are implemented as links.
    2. Check that the current location is not implemented as a link.

This is a proposal to change the G65 tests so the current location can optionally be represented by a link with aria-current="page" by revising the check as follows:

  1. For a breadcrumb trail that does include the current location:
    1. Check that all elements prior to the current location are implemented as links.
    2. Check that the current location is either not implemented as a link or is implemented as a link with aria-current="page".

The revised technique could also reference the ARIA Authoring Practices Guide for a supporting example.

Why?

  1. There are valid accessibility reasons for implementing the current location as a link.
  2. WCAG techniques are more valuable and robust when they avoid unnecessarily restricting design and facilitate maximum authoring flexibility.
  3. It would improve harmony among W3C WAI resources. G65, as explained below, makes the breadcrumb trail example in the ARIA Authoring Practices Guide appear invalid.

Rationale

The breadcrumb example in the ARIA Authoring Practices Guide
implements the current location as a link.

The APG task force recently became aware of this difference between the APG and WCAG technique when the task force received this issue --
Should the current location on a breadcrumb trail be an anchor element? · Issue #3047 · w3c/aria-practices

The APG task force chose to use a link for current location because:

  1. The markup clearly communicates the current location in the navigation using aria-current.
  2. The design makes current location perceivable when tabbing or reading a list of links.

If the current location is plain text, the meaning of the text depends entirely on the surrounding context. While that is not an unreasonable dependency, it is an unnecessary dependency for the breadcrumb pattern because the dependency can be removed by using a link with aria-current instead of plain text.

@patrickhlauke
Copy link
Member

patrickhlauke commented Jul 6, 2024

The thing with techniques is though: not following the technique does not mean an authors necessarily fails the SC. Techniques are but one way of passing an SC. They're not comprehensive or complete, so the current G65 does not preclude authors from actually using aria-current and having the current page as a link.

So sure, G65 could be expanded to also show an example of this different approach (as both are valid for the purposes of the SC). Or a new technique could be created purely for the variant with link and aria-current.

@scottaohara
Copy link
Member

seems G65 could just be modified a bit to allude to the fact that either are ok.

scottaohara added a commit that referenced this issue Jul 8, 2024
Expand the examples for G65 'providing a breadcrumb trail' to acknowledge the fact that a breadcrumb's current location can be a hyperlink.

closes #3948
@fstrr
Copy link
Contributor

fstrr commented Jul 15, 2024

That reminds me that I wrote a technique for aria-current in 2021.

mbgower pushed a commit that referenced this issue Sep 16, 2024
Expand the examples/example descriptions for G65 'providing a breadcrumb
trail' to acknowledge the fact that a breadcrumb's current location can
be a hyperlink.

closes #3948

---------

Co-authored-by: Giacomo Petri <[email protected]>
Co-authored-by: Patrick H. Lauke <[email protected]>
Co-authored-by: Kenneth G. Franqueiro <[email protected]>
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 a pull request may close this issue.

4 participants