Dropdown component has redundant labels
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.
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.
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!
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?