Checkbox component doesn't take form
prop
#6262
Closed
vincerubinetti
started this conversation in
General
Replies: 2 comments 1 reply
-
Neither do slider thumbs. |
Beta Was this translation helpful? Give feedback.
1 reply
-
closing as the discussion is on the issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Many if not most of the other components accept a
form
attribute, where appropriate, to associate the control with a particular form.The spec clearly allows controls to be associated with a form by either 1) nesting the controls in the form, or 2) having them separate in the DOM but linked together with
form="some-form-id"
on the control.I find that component library developers all too often forget about the latter perfectly spec-valid approach. I do not like needing a parent form element because it affects layout, and
display: contents
is still problematic with accessibility in some browsers.Beta Was this translation helpful? Give feedback.
All reactions