Fixes #22813 (closed).
Basically, our .form-check
was using :only-child
to try to say "limit this style to the input if there's no label text," but plain text within an HTML element doesn't count as an element (child or not). As such, we need to explicitly say when something is static.
This depends on #18476 (closed) or something like it.