Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select: aria-describedby does not get added to the combobox input element #7057

Open
1 task done
kohli-pratik-sage opened this issue Nov 5, 2024 · 1 comment · May be fixed by #7071
Open
1 task done

Select: aria-describedby does not get added to the combobox input element #7057

kohli-pratik-sage opened this issue Nov 5, 2024 · 1 comment · May be fixed by #7071

Comments

@kohli-pratik-sage
Copy link

Description

When using the aria-describedby prop provided for the Select component, it does not get applied to the combobox input component, it instead gets applied to the subsequent span element that has the "Please select" placeholder text.

This is a incorrect behaviour as the expectation is for the prop to be applied to the intended component. This is required for a accessibility issue fix.

Reproduction

https://stackblitz.com/edit/parsium-carbon-starter-uduhy9?file=src%2FApp.tsx

Steps to reproduce

Inspect the Select component in the StackBlitz environment shared, you will see the aria-label is applied to the combobox input element as expected but the aria-describedby is not.

JIRA ticket numbers (Sage only)

No response

Suggested solution

No response

Carbon version

142.9.1

Design tokens version

4.34.0

Relevant browsers

Microsoft Edge

Relevant OSs

MacOS

Additional context

No response

Confidentiality

  • I confirm there is no confidential or commercially sensitive information included.
@kohli-pratik-sage kohli-pratik-sage added Bug triage Triage Required labels Nov 5, 2024
@nicktitchmarsh
Copy link
Contributor

FE-6889

DipperTheDan added a commit that referenced this issue Nov 12, 2024
…xtbox element

Currently the aria-describedby attribute is applied to the placeholder span of select-textbox. This
fix esnures that the attribute is correctly applied to the elect-textbox.

fixes #7057
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants