mirror of https://github.com/sveltejs/svelte
fix: ignore popover elements in a11y_consider_explicit_label check (#17367)
* fix: ignore popover elements in a11y_consider_explicit_label check * chore: add changeset * Apply suggestions from code review * Apply suggestions from code review * fix --------- Co-authored-by: Rich Harris <hello@rich-harris.dev> Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/17576/head
parent
08448c501b
commit
3256a75b54
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: disregard `popover` elements when determining whether an element has content
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
<button interestfor="my-hint">
|
||||||
|
<div id="my-hint" popover="hint">hello</div>
|
||||||
|
</button>
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"code": "a11y_consider_explicit_label",
|
||||||
|
"message": "Buttons and links should either contain text or have an `aria-label`, `aria-labelledby` or `title` attribute",
|
||||||
|
"start": {
|
||||||
|
"line": 1,
|
||||||
|
"column": 0
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 3,
|
||||||
|
"column": 9
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
Loading…
Reference in new issue