Add option for custom aria-describedby#5871
Add option for custom aria-describedby#5871Superman2971 wants to merge 3 commits intoJedWatson:masterfrom
Conversation
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
|
Hey @Superman2971 I think your test is correct but you just need to run should be on two lines to so that it goes under the max line length of prettiest default setting |
Thank you @plahteenlahti! That was a good catch 👍 Now fixed 😄 ✅ |
|
My team is waiting on this merge! |
|
We need this merge as well! |
| 'aria-describedby': | ||
| this.props['aria-describedby'] || | ||
| this.getElementId('placeholder'), |
There was a problem hiding this comment.
Perhaps this should be:
| 'aria-describedby': | |
| this.props['aria-describedby'] || | |
| this.getElementId('placeholder'), | |
| 'aria-describedby': [ | |
| this.props['aria-describedby'], | |
| this.getElementId('placeholder'), | |
| ] | |
| .filter(Boolean) | |
| .join(' '), |
|
Is there anything in particular stopping this from being merged? Is it not something |




Provides support for issues: #5562 and #1570
I've tested my fork on local repository to confirm this does indeed pass the provided
aria-describedbyto the react-select. Also tested and passed theyarn lint,yarn type-check, andyarn testper CONTRIBUTING.MDOur team needs this implemented to meet a11y support for our use of react-select. We have some custom hint and error messaging that is related to the Select and needs to be accessibly connected through aria-describedby. I'm hoping we can contribute to the library and make this available in a minor update to the package. Please let me know what I can do to assist in getting this PR approved and ready to merge :) Cheers!