fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Dropdown component has redundant labels

Open satbai opened this issue 9 years ago • 3 comments

Bug Report

  • Package version(s): latest
  • Browser and OS versions: all

Describe the issue:

Accessibility: The button inside the Dropdown component (list) has redundant labels/instructions.

Example values: Aria-label (button): "listItem" Button text: "listItem" Title (button): "listItem"

Example snippet (DOM): <button type="button" id="Dropdown7-list6" data-index="6" data-is-focusable="true" class="ms-Dropdown-item item_5ad99a4c ms-Button ms-Button--command css-3d3mgq" role="option" aria-selected="false" title="listItem" aria-label="listItem" tabindex="-1"> <div class="ms-Button-flexContainer css-130zv93"> <span class="ms-Dropdown-optionText optionText_5ad99a4c">listItem</span> </div> </button>

Expected behavior:

If the title and aria-label just copies the button text, they are redundant and unnecessary, and should be removed.

satbai avatar Jul 28 '17 21:07 satbai

This is correct. We shouldn't be using the ARIA label to name the type of control if it's a semantic html control like a button or radio.

betrue-final-final avatar Oct 20 '17 16:10 betrue-final-final

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Fabric React!

stale[bot] avatar Apr 11 '18 02:04 stale[bot]

This issue has been automatically closed because it has not had recent activity after being marked as stale. If you belive this issue is still a problem or should be reopened, please reopen it! Thank you for your contributions to Fabric React! Why am I receiving this notification?

stale[bot] avatar May 18 '18 23:05 stale[bot]