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 /> <SearchBox />
<MoreBox> <MoreBox>
<ThemePicker /> <ThemePicker />
<a href='/profil'> <a href='/profil' title={'Accéder à mon compte'}>
<i class='ri-user-line'></i> <i class='ri-user-line'></i>
</a> </a>
<AiChatBox /> <AiChatBox />

View file

@ -14,7 +14,11 @@ export function ProjectCard(
) { ) {
return ( return (
<div class='components__project_card'> <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'> <div class='components__project_card__content'>
<h3>{title}</h3> <h3>{title}</h3>
<div class='components__project_card__state'> <div class='components__project_card__state'>

View file

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

View file

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