fix(seed): Best practice for radio button (#16349)
parent
2df89dab95
commit
9dc3073003
|
@ -1769,7 +1769,8 @@
|
|||
"Each of your radio buttons should be nested within its own <code>label</code> element.",
|
||||
"All related radio buttons should have the same <code>name</code> attribute.",
|
||||
"Here's an example of a radio button:",
|
||||
"<code><label><input type=\"radio\" name=\"indoor-outdoor\"> Indoor</label></code>",
|
||||
"<blockquote><label for=\"indoor\"> <br> <input type=\"radio\" name=\"indoor-outdoor\">Indoor <br></label></blockquote>",
|
||||
"It is considered best practice to set the <code>for</code> attribute for assistive technologies to be able to link the relationship between the label and the child elements such as an <code>input</code> in this case.",
|
||||
"<hr>",
|
||||
"Add a pair of radio buttons to your form. One should have the option of <code>indoor</code> and the other should have the option of <code>outdoor</code>. Both should share the <code>name</code> attribute of <code>indoor-outdoor</code>."
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue