mirror of
https://github.com/suitenumerique/docs
synced 2026-04-21 13:37:20 +00:00
♿️(frontend) add explicit aria-label to search reset button
Add aria-label to clarify the reset button resets filters (#2042)
This commit is contained in:
parent
d1636dee13
commit
71c4d2921b
1 changed files with 7 additions and 1 deletions
|
|
@ -58,7 +58,13 @@ export const DocSearchFilters = ({
|
|||
/>
|
||||
</Box>
|
||||
{hasFilters && (
|
||||
<Button color="brand" variant="tertiary" size="small" onClick={onReset}>
|
||||
<Button
|
||||
color="brand"
|
||||
variant="tertiary"
|
||||
size="small"
|
||||
onClick={onReset}
|
||||
aria-label={t('Reset search filters')}
|
||||
>
|
||||
{t('Reset')}
|
||||
</Button>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue