chore(Table): Add aria-label to Table page size selector (#29391)

This commit is contained in:
Geido
2024-06-28 16:19:58 +02:00
committed by GitHub
parent 2a587a771c
commit 66bc8ceddd
2 changed files with 13 additions and 3 deletions

View File

@@ -48,8 +48,13 @@ function DefaultSelectRenderer({
const [size, text] = Array.isArray(option)
? option
: [option, option];
const sizeLabel = size === 0 ? t('all') : size;
return (
<option key={size} value={size}>
<option
aria-label={t('Show %s entries', sizeLabel)}
key={size}
value={size}
>
{text}
</option>
);