Closed 1Copenut closed 3 years ago
@cvalarida @bkjohnson , can you look into this bug next week?
@caw310 @cvalarida @bkjohnson - Have you had an opportunity to look into this? We are trying to determine how we should proceed. Thanks in advance for any info/insights you can provide!
@JoeTice , will try to discuss this during our planning on weds and get back to you.
SegmetedProgressBar
ariaValueText
ProgressBar
In FormNav
:
formConfig.subTitle
and formConfig.title
to pass to the SegmentedProgressBar
labelstepText
to the progress bar ariaValueText
The result will look like the following:
<SegmentedProgressBar
total={chapters.length}
current={current}
label={`${formConfig.subTitle}, ${formConfig.title}`}
ariaValueText={stepText} />
Showing the error in Storybook (the same appears for the non-segmented version):
Here is how our ProgressBars are used in vets-website
:
rg "<(.)*ProgressBar" src/ -g "!test"
src/applications/claims-status/components/UploadStatus.jsx
15: <ProgressBar percent={progress * 100} />
src/applications/letters/containers/DownloadLetters.jsx
22: <SegmentedProgressBar total={chapters.length} current={currentStep} />
src/applications/vre/28-1900/orientation/StepComponent.jsx
18: <SegmentedProgressBar current={data.number} total={stepTotal} />
src/platform/forms-system/src/js/components/FormNav.jsx
83: <SegmentedProgressBar total={chapters.length} current={current} />
src/platform/forms-system/src/js/fields/FileField.jsx
287: <ProgressBar percent={this.state.progress} />
Thank you @bkjohnson. I'll roll this in with the work I'm doing on the other side for bumping axe-core. Will have answers for you this week hopefully. Lots of moving parts, but we're getting there.
@bkjohnson I added text for each of the five instances, in the same order as your regex search returned them. LMK if you have any questions or these text blocks can't be easily assembled.
<ProgressBar />
component
null
<SegmentedProgressBar />
component
<SegmentedProgressBar />
component
<SegmentedProgressBar />
component
formConfig.subTitle
and formConfig.title
valuesaria-valuetext
and add it here<ProgressBar />
component
file.name
file.name
value on line 285 of the FileField componentThe Design System team has discussed this, and due to the expanding scope we have decided to pause implementation and hand it off to @JoeTice.
This issue has been resolved with PR #28 in Darius' comment above. Moving to close.
@1Copenut Issue 21138 created by Angela during her HLR audit may be relevant to this and may require a new ticket
@joshkimux I think it will be a new ticket for the design system team, yes. Reading Angela's ticket, I understood that the progressbar shouldn't have a tabindex=0"
because that made it a focusable element.
Would you mind opening a new ticket on the https://github.com/department-of-veterans-affairs/vets-design-system-documentation/ repo?
On it!
Bug Report
What happened
The newest version of the Deque axe browser plugin flags our Segmented Progressbar component because it doesn't have an accessible label. This will cause our CI/CD pipeline to break when we upgrade the axe-core library. That work is planned for after the holiday.
Pinging @joshkimux for visibility. He's been looking closely at the Progressbar and has some really good insights.
This issue affects our multi-step forms and will block bumping the axe-core library because of the potential for CI/CD build breaks:
What I expected to happen
Reproducing
Steps to reproduce:
<Progressbar />
componentPotential Code Updates
I took a look at how we might update the markup for our Progress bar. Put together a Codepen and the snippet below. JAWS will only read the
aria-valuetext
while NVDA and VoiceOver will read thearia-label
, then thearia-valuetext
in preliminary reviews.Screenshot