fix: a11y issues

This commit is contained in:
Ayo Ayco 2025-04-13 02:41:15 +02:00
parent c8b3c5a41b
commit f7c0127c3c
4 changed files with 8 additions and 3 deletions

View file

@ -20,7 +20,7 @@ const year = new Date().getFullYear()
{ {
links.map((linkObj) => ( links.map((linkObj) => (
<li title={linkObj.text}> <li title={linkObj.text}>
<a href={linkObj.url}> <a href={linkObj.url} aria-label={linkObj.text}>
<Icon pack={linkObj.set ?? 'simple-icons'} name={linkObj.icon} /> <Icon pack={linkObj.set ?? 'simple-icons'} name={linkObj.icon} />
</a> </a>
</li> </li>

View file

@ -24,7 +24,7 @@ if (Astro.url.pathname !== '/') {
links links
.filter((link) => link.url !== '') .filter((link) => link.url !== '')
.map((link) => ( .map((link) => (
<a href={link.url}> <a href={link.url} aria-label={link.text}>
<Icon pack={link.set ?? 'mdi'} name={link.icon} />{' '} <Icon pack={link.set ?? 'mdi'} name={link.icon} />{' '}
{link.text ?? link.icon} {link.text ?? link.icon}
</a> </a>

View file

@ -15,6 +15,7 @@
--color-brand-blue-5: #3964e6; --color-brand-blue-5: #3964e6;
--color-brand-complement: orange; --color-brand-complement: orange;
--color-brand-complement-dark: #a36a00;
--ayo-gradient: linear-gradient(45deg, #3054bf, #416fff); --ayo-gradient: linear-gradient(45deg, #3054bf, #416fff);
--text-color-dark: #232323; --text-color-dark: #232323;

View file

@ -140,7 +140,11 @@ import now from '../constants/now.json'
em { em {
font-weight: bold; font-weight: bold;
color: var(--color-brand-complement); color: var(--color-brand-complement-dark);
@media (prefers-color-scheme: dark) {
color: var(--color-brand-complement);
}
} }
} }