mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Fix a11y error in CardsCount Component (#2585)
* fix: a11y issues in CardCounts component * feat: add name to contributors file * fix: excessive spacing
This commit is contained in:
parent
ae5f1cfda1
commit
3727781522
2 changed files with 11 additions and 2 deletions
|
@ -130,6 +130,7 @@ mmjang <752515918@qq.com>
|
||||||
shunlog <github.com/shunlog>
|
shunlog <github.com/shunlog>
|
||||||
3ter <github.com/3ter>
|
3ter <github.com/3ter>
|
||||||
Derek Dang <github.com/derekdang/>
|
Derek Dang <github.com/derekdang/>
|
||||||
|
Kehinde Adeleke <adelekekehinde06@gmail.com>
|
||||||
|
|
||||||
********************
|
********************
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
<td>
|
<td>
|
||||||
<span style="color: {d.colour};">■ </span>
|
<span style="color: {d.colour};">■ </span>
|
||||||
{#if $prefs.browserLinksSupported}
|
{#if $prefs.browserLinksSupported}
|
||||||
<span class="search-link" on:click={() => dispatch('search', { query: d.query })}>{d.label}</span>
|
<button class="search-link" on:click={() => dispatch('search', { query: d.query })}>{d.label}</button>
|
||||||
{:else}
|
{:else}
|
||||||
<span>{d.label}</span>
|
<span>{d.label}</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -124,8 +124,16 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-link:hover {
|
.search-link {
|
||||||
|
border: none;
|
||||||
|
background: transparent;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
box-shadow: none;
|
||||||
|
padding: 1px 3px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-link:hover {
|
||||||
color: var(--fg-link);
|
color: var(--fg-link);
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue