mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix a11y-noninteractive-element-interactions (#2578)
* Fix a11y-noninteractive-element-interactions * Update CONTRIBUTORS * Fix formatting issues * Address a11y-noninteractive-element-interactions
This commit is contained in:
parent
754fcc2b3a
commit
ca41dfeb3d
4 changed files with 17 additions and 10 deletions
|
@ -129,6 +129,7 @@ Ben Yip <github.com/bennyyip>
|
||||||
mmjang <752515918@qq.com>
|
mmjang <752515918@qq.com>
|
||||||
shunlog <github.com/shunlog>
|
shunlog <github.com/shunlog>
|
||||||
3ter <github.com/3ter>
|
3ter <github.com/3ter>
|
||||||
|
Derek Dang <https://github.com/derekdang/>
|
||||||
|
|
||||||
********************
|
********************
|
||||||
|
|
||||||
|
|
|
@ -230,7 +230,6 @@ impl BuildAction for SvelteCheck {
|
||||||
"a11y-click-events-have-key-events",
|
"a11y-click-events-have-key-events",
|
||||||
"a11y-no-noninteractive-tabindex",
|
"a11y-no-noninteractive-tabindex",
|
||||||
"a11y-no-static-element-interactions",
|
"a11y-no-static-element-interactions",
|
||||||
"a11y-no-noninteractive-element-interactions",
|
|
||||||
]
|
]
|
||||||
.iter()
|
.iter()
|
||||||
.map(|warning| format!("{}$:ignore", warning))
|
.map(|warning| format!("{}$:ignore", warning))
|
||||||
|
|
|
@ -94,15 +94,16 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
<div id="nav">
|
<div id="nav">
|
||||||
<ul>
|
<ul>
|
||||||
{#each helpSections as section, i}
|
{#each helpSections as section, i}
|
||||||
<li
|
<li>
|
||||||
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
activeIndex = i;
|
activeIndex = i;
|
||||||
carousel.to(activeIndex);
|
carousel.to(activeIndex);
|
||||||
}}
|
}}
|
||||||
|
class:active={i == activeIndex}
|
||||||
>
|
>
|
||||||
<span class:active={i == activeIndex}>
|
|
||||||
{section.title}
|
{section.title}
|
||||||
</span>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -171,10 +172,14 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
li span {
|
li button {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0.5rem 0.75rem;
|
padding: 0.5rem 0.75rem;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
text-align: left;
|
||||||
|
min-width: 250px;
|
||||||
|
background-color: var(--canvas);
|
||||||
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--canvas-inset);
|
background-color: var(--canvas-inset);
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
||||||
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||||
<label
|
<label
|
||||||
bind:this={spanRef}
|
bind:this={spanRef}
|
||||||
for={forId}
|
for={forId}
|
||||||
|
|
Loading…
Reference in a new issue