File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,12 @@ The example below will find the input node for the following DOM structures:
96
96
// Wrapper labels
97
97
< label> Username < input / >< / label>
98
98
99
+ // Wrapper labels where the label text is in another child element
100
+ < label>
101
+ < span> Username< / span>
102
+ < input / >
103
+ < / label>
104
+
99
105
// aria-label attributes
100
106
// Take care because this is not a label that users can see on the page,
101
107
// so the purpose of your input must be obvious to visual users.
@@ -135,12 +141,6 @@ You may also need to filter down the results of the query.
135
141
For that you can use the ` selector ` option:
136
142
137
143
``` js
138
- // Label containing multiple elements
139
- < label>
140
- < span> Username< / span>
141
- < input / >
142
- < / label>
143
-
144
144
// Multiple elements labelled via aria-labelledby
145
145
< label id= " username" > Username< / label>
146
146
< input aria- labelledby= " username" / >
You can’t perform that action at this time.
0 commit comments