mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
fixing React warning about missing prop (#30147)
* fixing React warning about missing prop * removing redundant aria-label
This commit is contained in:
parent
2f92df5ee3
commit
b71144074a
1 changed files with 8 additions and 7 deletions
|
@ -18,19 +18,20 @@ export const renderBadges = (index, filterChanged) => {
|
|||
&& filterExpression
|
||||
&& filterChanged(EuiSearchBar.Query.parse(filterExpression));
|
||||
};
|
||||
const ariaLabel = i18n.translate(
|
||||
'xpack.idxMgmt.badgeAriaLabel',
|
||||
{
|
||||
defaultMessage: '{label}. Select to filter on this.',
|
||||
values: { label },
|
||||
},
|
||||
);
|
||||
badgeLabels.push(
|
||||
<Fragment key={label}>
|
||||
{' '}
|
||||
<EuiBadge
|
||||
color={color}
|
||||
onClick={clickHandler}
|
||||
aria-label={i18n.translate(
|
||||
'xpack.idxMgmt.badgeAriaLabel',
|
||||
{
|
||||
defaultMessage: '{label}. Select to filter on this.',
|
||||
values: { label },
|
||||
},
|
||||
)}
|
||||
onClickAriaLabel={ariaLabel}
|
||||
>
|
||||
{label}
|
||||
</EuiBadge>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue