feat(ux): improve accessibility with titles alts and labels

This commit is contained in:
Julien Oculi 2024-07-04 12:04:35 +02:00
parent 8a3b2bfa29
commit 38ce5042ff
4 changed files with 8 additions and 3 deletions

View file

@ -57,7 +57,7 @@ export function Header() {
<SearchBox />
<MoreBox>
<ThemePicker />
<a href='/profil'>
<a href='/profil' title={'Accéder à mon compte'}>
<i class='ri-user-line'></i>
</a>
<AiChatBox />

View file

@ -14,7 +14,11 @@ export function ProjectCard(
) {
return (
<div class='components__project_card'>
<img src={icon} class='components__project_card__icon' />
<img
alt='Icon du projet'
src={icon}
class='components__project_card__icon'
/>
<div class='components__project_card__content'>
<h3>{title}</h3>
<div class='components__project_card__state'>

View file

@ -88,6 +88,7 @@ export default function AiChatBox() {
<button
class='islands__ai_chat_box__button'
onClick={() => dialog.current?.showModal()}
title={'Ouvrir la chat box IA'}
>
<i class='ri-bard-line'></i>
</button>

View file

@ -39,7 +39,7 @@ export default function ThemePicker() {
})
return (
<label class='islands__theme_picker'>
<label class='islands__theme_picker' title={'Sélectionner un thème'}>
<span>{themeIcon}</span>
<select
value={theme}