fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

ProgressIndicator: ARIA progressbar nodes must have an accessible name

Open ghassane23 opened this issue 5 years ago • 3 comments

Environment Information

  • Package version(s): 8.14.5
  • Browser and OS versions: Edge, Windows

Describe the issue:

Accessibility insights for Web returns an error when rendering the ProgressIndicator without a Label or Description even though we provide an AriaValueText.

Please provide a reproduction of the issue in a codepen:

Codepen link: https://codepen.io/gadnani/pen/xxqLdLb

Actual behavior:

ARIA progressbar nodes don't have an accessible name

Expected behavior:

ariaValueText is used to give the progress indicator an aria-label

Documentation describing expected behavior

image

ghassane23 avatar May 27 '21 02:05 ghassane23

@ghassane23 - Thanks for filing this issue with us and sharing the details into the problem.

@miroslavstastny - Would you be able to confirm if this is a regression, or if this behavior is an issue? cc @smhigley

gouttierre avatar Jun 28 '21 12:06 gouttierre

@ghassane23 the ariaValueText component prop will set the aria-valuetext DOM attribute, which is unrelated to the accessible name. The aria-valuetext attribute provides a custom text alternative to the current value of the progressbar, similar to the value of any other form field.

To give the progressbar an accessible name, you can use the label prop. If needed, you could style it to be visually hidden.

@miroslavstastny another thing we could look into is adding an ariaLabel prop to the ProgressIndicator component, since it looks like we don't currently have one.

smhigley avatar Jun 28 '21 17:06 smhigley

Adding my two cents: I like the idea of adding ariaLabel prop

rachelgshaffer avatar Jul 01 '21 22:07 rachelgshaffer