fix(island): add accessible titles to buttons

This commit is contained in:
Julien Oculi 2024-07-03 14:59:01 +02:00
parent 7322070876
commit 8a3b2bfa29
2 changed files with 9 additions and 1 deletions

View file

@ -17,6 +17,7 @@ export default function MoreBox({ children }: { children: VNode | VNode[] }) {
<button
class='islands__more_box__button'
onClick={() => dialog.current?.showModal()}
title={"Afficher plus d'options"}
>
<i class='ri-more-2-line'></i>
</button>

View file

@ -16,12 +16,19 @@ export default function SearchBox() {
<button
class='islands__search_box__button'
onClick={() => dialog.current?.showModal()}
title={'Ouvrir la recherche'}
>
<i class='ri-search-line'></i>
<span>&nbsp;Rechercher</span>
</button>
<dialog ref={dialog} class='islands__search_box__dialog'>
<input type='search' name='' id='' placeholder='Rechercher' autoFocus />
<input
type='search'
name=''
id=''
placeholder='Rechercher'
autoFocus
/>
<div class='islands__search_box__dialog__content'>
<h3>Machines</h3>
<ul>