️(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:
Cyril 2026-03-17 15:53:28 +01:00
parent d1636dee13
commit 71c4d2921b
No known key found for this signature in database
GPG key ID: D5E8474B0AB0064A

View file

@ -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>
)}