We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4476d3 commit c501b94Copy full SHA for c501b94
__tests__/src/rules/label-has-associated-control-test.js
@@ -50,7 +50,7 @@ const htmlForValid = [
50
{ code: '<CustomLabel htmlFor="js_id" aria-label="A label" />', options: [{ controlComponents: ['Custom*'] }] },
51
{ code: '<CustomLabel htmlFor="js_id" aria-label="A label" />', options: [{ controlComponents: ['*Label'] }] },
52
// Rule does not error if presence of accessible label cannot be determined
53
- { code: '<><label htmlFor="js_id"><CustomText /></label><input id="js_id" /></>' },
+ { code: '<div><label htmlFor="js_id"><CustomText /></label><input id="js_id" /></div>' },
54
];
55
const nestingValid = [
56
{ code: '<label>A label<input /></label>' },
0 commit comments