fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Button][Accessibility] Disabled button having both disabled attribute and aria-disabled="true"

Open ankitk94 opened this issue 9 years ago • 2 comments

Bug Report

  • Package version(s): 1.9.2

Describe the issue:

ARIA guideline says "Only use the aria-disabled attribute for elements that are not allowed to have a disabled attribute in HTML5", but for office fabric disabled button, we are passing both "disabled attribute" and "aria-disabled=true".

Link for guideline: https://www.w3.org/TR/html-aria/

image

Actual behavior:

Both disabled="" and aria-disabled="true" are included for disabled button

Expected behavior:

Only disabled="" should be included as disabled is supported by button input.

ankitk94 avatar Jul 06 '17 06:07 ankitk94

Makes sense to me. It would be awesome if you could create a PR to fix this issue?

Button component can also return anchor element, while making the change lets make sure that we still have aria-disabled="true" when it's an element.

@atneik Raised the PR, can you take a look at it?

ankitk94 avatar Jul 10 '17 10:07 ankitk94