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

Use separate attrs for select and text form field to help with accessibility #460

Closed
KunjPrasad opened this issue Aug 11, 2021 · 1 comment

Comments

@KunjPrasad
Copy link

I am using PhoneNumberPrefixWidget (link). I want to provide different widget attributes for phone country code select and phone number text fields. A primary goal is to provide different aria-label attributes for the two input type because I'm unable to identify how to put different label for each and position it side by side since it is a MultiWidget. Not sure if there are alternate ways to make it accessible.

Looking at other example of MultiWidget in Django (like, here), it seems that different attrs kwargs are defined.

@francoisfreitag
Copy link
Collaborator

Should have been resolved with #502.

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

No branches or pull requests

2 participants