ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-select accessible name via aria-label or aria-labelledby does not work

Open mastanshaikk opened this issue 6 years ago • 2 comments

Describe the bug ui5-select accessible name via aria-label or aria-labelledby does not work because the aria-labelledby was set to use an internal label from lines: https://github.com/SAP/ui5-webcomponents/blob/master/packages/main/src/Select.hbs#L9 and https://github.com/SAP/ui5-webcomponents/blob/master/packages/main/src/Select.hbs#L22 where the external aria-labelledby attribute will not be applied that was provide on ui5-select element and aria-label attribute seem to apply, but aria-labelledby has a high precedence over aria-label so it always uses the internal label irrespective of aria-label or aria-labelledby attributes provided, a good solution could be to append the aria-labelledby id's or calculate effect accessible name and apply it. This is a problem if it is used in associated with a label like in a form. image

To reproduce Steps to reproduce the behavior:

  1. Go to https://sap.github.io/ui5-webcomponents/playground/components/Label/ try navigate to the ui5-select element though the label "Job" was associated it will not be read by screen readers.

Expected behavior Should be able to associate an aria-label or aria-labelledby via attributes on ui5-select and have it reflected along with the selected option text.

Screenshots If applicable, add screenshots to help explain your problem. image

mastanshaikk avatar Sep 22 '20 01:09 mastanshaikk

Hi @mastanshaikk

The reported issue has already been reported(see #2142) and is currently being worked on. I will close the current issue as duplicate as the progress could be tracked in the linked issue

fifoosid avatar Sep 23 '20 04:09 fifoosid

Hi @fifoosid

Thanks, will follow #2142

mastanshaikk avatar Sep 23 '20 08:09 mastanshaikk