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

PrimeNg - Improve accessibility by setting inputId #3899

Open
srollinet opened this issue Apr 22, 2024 · 0 comments
Open

PrimeNg - Improve accessibility by setting inputId #3899

srollinet opened this issue Apr 22, 2024 · 0 comments

Comments

@srollinet
Copy link

srollinet commented Apr 22, 2024

Is your feature request related to a problem? Please describe.

When testing the accessibility on a formly form using PrimeNg components, a lot of issues related to missing labels are found.
This is because the inputId prop is not set in the templates.

By setting this prop, the labels are correctly attached to the controls, using for=id

Describe the solution you'd like
The templates should be modified to set [inputId]="id" when applicable

Describe alternatives you've considered
none

Additional context
none

I can make a PR if you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant