feat(ux): ♿ improve accessibility with titles alts and labels
This commit is contained in:
parent
8a3b2bfa29
commit
38ce5042ff
|
@ -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 />
|
||||||
|
|
|
@ -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'>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue