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

Adopt WAI-ARIA guidance for breadcrumbs #326

Open
joewiz opened this issue Feb 3, 2018 · 0 comments
Open

Adopt WAI-ARIA guidance for breadcrumbs #326

joewiz opened this issue Feb 3, 2018 · 0 comments

Comments

@joewiz
Copy link
Member

joewiz commented Feb 3, 2018

See https://www.w3.org/TR/wai-aria-practices-1.1/#breadcrumb and https://www.w3.org/TR/wai-aria-practices-1.1/examples/breadcrumb/index.html.

Currently pages like https://history.state.gov/historicaldocuments use the following breadcrumb markup:

<div class="hsg-breadcrumb-wrapper">
    <ol class="breadcrumb">
        <li>
            <a href="">Home</a>
        </li>
        <li>
            <a href="/historicaldocuments">Historical Documents</a>
        </li>
    </ol>
</div>

The guidelines suggest the use of (1) <nav aria-label="Breadcrumb" class="breadcrumb"> and (2) aria-current="page" for the current page. Thus the markup should be as follows (I assume a wrapper div around the <nav> would probably be okay, if necessary):

<nav aria-label="Breadcrumb" class="breadcrumb">
    <ol>
        <li>
            <a href="">Home</a>
        </li>
        <li>
            <a href="/historicaldocuments" aria-current="page">Historical Documents</a>
        </li>
    </ol>
</nav>
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