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:
Kenny 2023-07-21 11:43:08 +01:00 committed by GitHub
parent ae5f1cfda1
commit 3727781522
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -130,6 +130,7 @@ mmjang <752515918@qq.com>
shunlog <github.com/shunlog>
3ter <github.com/3ter>
Derek Dang <github.com/derekdang/>
Kehinde Adeleke <adelekekehinde06@gmail.com>
********************

View file

@ -64,7 +64,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<td>
<span style="color: {d.colour};">&nbsp;</span>
{#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}
<span>{d.label}</span>
{/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;
box-shadow: none;
padding: 1px 3px;
margin-bottom: 0px;
}
.search-link:hover {
color: var(--fg-link);
text-decoration: underline;
}