diff --git a/.changeset/loud-pugs-attend.md b/.changeset/loud-pugs-attend.md new file mode 100644 index 000000000..c60033467 --- /dev/null +++ b/.changeset/loud-pugs-attend.md @@ -0,0 +1,23 @@ +--- +'@svelte-vitals/core': patch +--- + +Stop `a11y/accessible-name` and `a11y/label-has-control` reporting content they cannot see. + +Both rules already skip content they cannot resolve — an expression, a component, `{@render}`, +`{@html}` — but four routes were read as _absent_ rather than _unknowable_: + +- **A `` or ``** supplies content from the parent, so `` + and `` were flagged despite being named and associated + by whoever renders them. +- **A hyphenated custom element** may be form-associated (and so labelable) and may name its host + from a shadow root, so `` was flagged. +- **An expression-valued `alt`** was invisible while an expression `aria-label` was accepted, so + the idiomatic `{siteName}` was "unnamed". +- **A `