-
-
Notifications
You must be signed in to change notification settings - Fork 640
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
[label-has-associated-control] Glob format not supporting labelComponents #972
Comments
I can definitely see both readings (that it applies only to control, and that it applies to both. I think that paragraph needs some splitting up for clarity regardless. If we can enable glob support on label components in a non-breaking way, then I'm happy to add it. |
A fix for part of the issue is up (the docs being a bit hard to read) #1024 |
…control` Add ability for `labelComponents` within the `label-has-associated-control` to use the same glob checking mechanism as `controlComponents`. Ensure existing tests pass and update unit tests for new behaviour. Add extra tests for documented `???Foo` syntax for component glob matching. Update documentation to have appropriate examples for label/control glob usage. Fixes jsx-eslint#972
…control` Add ability for `labelComponents` within the `label-has-associated-control` to use the same glob checking mechanism as `controlComponents`. - Ensure existing tests pass and update unit tests for new behaviour - Add extra tests for documented `???Foo` syntax for component glob matching - Update documentation to have appropriate examples for label/control glob usage Closes jsx-eslint#972
PR up for the rest of the fix for this, supporting glob matching in |
…control` Add ability for `labelComponents` within the `label-has-associated-control` to use the same glob checking mechanism as `controlComponents`. - Ensure existing tests pass and update unit tests for new behaviour - Add extra tests for documented `???Foo` syntax for component glob matching - Update documentation to have appropriate examples for label/control glob usage Closes jsx-eslint#972
The docs mention that:
It seems like glob matching only occurs for
controlComponents
, notlabelComponents
in jsx-a11y/label-has-associated-control, though it seems like (and makes sense) to have it applied to both of them.The text was updated successfully, but these errors were encountered: