mirror of https://github.com/sveltejs/svelte
parent
c743e72a1e
commit
0e97936a2c
@ -0,0 +1,5 @@
|
|||||||
|
<span>🐼</span>
|
||||||
|
<i role="img" aria-label="Panda">🐼</i>
|
||||||
|
|
||||||
|
<!-- this one won't have a warning -->
|
||||||
|
<span role="img" aria-label="Panda">🐼</span>
|
@ -0,0 +1,33 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"code": "a11y-accessible-emoji",
|
||||||
|
"message": "A11y: emojis should be wrapped in a <span>, with role=\"img\", and have a description using aria-label or aria-labelledby",
|
||||||
|
"start": {
|
||||||
|
"line": 1,
|
||||||
|
"column": 6,
|
||||||
|
"character": 6
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 1,
|
||||||
|
"column": 8,
|
||||||
|
"character": 8
|
||||||
|
},
|
||||||
|
"pos": 6
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"code": "a11y-accessible-emoji",
|
||||||
|
"message": "A11y: emojis should be wrapped in a <span>, with role=\"img\", and have a description using aria-label or aria-labelledby",
|
||||||
|
"start": {
|
||||||
|
"line": 2,
|
||||||
|
"column": 33,
|
||||||
|
"character": 49
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 2,
|
||||||
|
"column": 35,
|
||||||
|
"character": 51
|
||||||
|
},
|
||||||
|
"pos": 49
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in new issue