Skip to content

Commit

Permalink
Label Breadcrumb Navigation and Item List (#369)
Browse files Browse the repository at this point in the history
* Add "Breadcrumb" label to breadcrumb navigation; add sr-only heading and describe the nav item list.

* Use `aria-label` to label breadcrumb nav and nav item list as opposed to non-nestable signpost heading.
  • Loading branch information
jkva committed Feb 2, 2022
1 parent cf60992 commit 9eea760
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion client/components/Reports/SummarizeTestPlanReport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ const SummarizeTestPlanReport = ({ testPlanReport }) => {
{getTestPlanVersionTitle(testPlanVersion)} with 
{getTestPlanTargetTitle(testPlanTarget)}
</h1>
<Breadcrumb>
<Breadcrumb
label="Breadcrumb"
listProps={{
'aria-label': 'Breadcrumb Navigation'
}}
>
<LinkContainer to="/reports">
<Breadcrumb.Item>
<FontAwesomeIcon icon={faHome} />
Expand Down
8 changes: 7 additions & 1 deletion client/components/Reports/SummarizeTestPlanVersion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ const SummarizeTestPlanVersion = ({ testPlanVersion, testPlanReports }) => {
</title>
</Helmet>
<h1>{getTestPlanVersionTitle(testPlanVersion)}</h1>
<Breadcrumb>

<Breadcrumb
label="Breadcrumb"
listProps={{
'aria-label': 'Breadcrumb Navigation'
}}
>
<LinkContainer to="/reports">
<Breadcrumb.Item>
<FontAwesomeIcon icon={faHome} />
Expand Down

0 comments on commit 9eea760

Please sign in to comment.