mirror of
https://github.com/apache/superset.git
synced 2026-04-10 20:06:13 +00:00
chore(Table): Add aria-label to Table page size selector (#29391)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user