← All demos · Q2 & Q3 recommendations
Shadow DOM label and help
Role on the host via ElementInternals. Label and help containers live
in shadow DOM with <slot name="label"> and
<slot name="help-text"> for slottable text. Wiring uses
internals.ariaLabelledByElements and
internals.ariaDescribedByElements on those shadow elements, with
mirrored internals.ariaLabel / ariaDescription.