-
Notifications
You must be signed in to change notification settings - Fork 3
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
[MCR-3625] MCCRS Record Number page a11y fixes #2053
Changes from 2 commits
eef3377
d49b1af
0a1f9cc
073aedf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,7 +176,10 @@ export const MccrsId = (): React.ReactElement => { | |
link: `/submissions/${id}`, | ||
text: pkgName || '', | ||
}, | ||
{ text: 'MC-CRS record number' }, | ||
{ | ||
text: 'MC-CRS record number', | ||
link: `/submissions/${id}/mccrs-record-number`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The ticket called out that "I need the breadcrumb title to clearly call out the page I am on, for example “MC-CRS record number - Current Page”, so I easily understand where I am on the page.", so in order for this to be tab-able and read out by JAWS I turned it into a link. If there's a better solution please let me know There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cool. Let's go ahead and make |
||
}, | ||
]} | ||
/> | ||
<UswdsForm | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,6 +169,7 @@ export const SubmissionSummary = (): React.ReactElement => { | |
MC-CRS record number: | ||
<Link | ||
href={`https://mccrs.abtsites.com/Home/Index/${pkg.mccrsID}`} | ||
aria-label="MC-CRS system login" | ||
> | ||
{pkg.mccrsID} | ||
</Link> | ||
|
@@ -179,6 +180,11 @@ export const SubmissionSummary = (): React.ReactElement => { | |
className={ | ||
pkg.mccrsID ? styles.editLink : '' | ||
} | ||
aria-label={ | ||
pkg.mccrsID | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: I try to use a shared variable when I'm trying to align display text with aria-label text so that these cannot accidentally diverge |
||
? 'Edit MC-CRS number' | ||
: 'Add MC-CRS record number' | ||
} | ||
> | ||
{pkg.mccrsID | ||
? 'Edit MC-CRS number' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This resolves an issue with react router dom where the submission page was being read out as the current page due to the url on that page being contained in the
submissions/:submissionID/mccrs-record-number
url which resulted in "current page" being read out for both breadcrumbs