Because of where the {...rest} is, when passing in an aria-label it gets applied to a span where aria-label (and most other aria-* properties) don't work...
3 possible solutions I see (not sure which is best):
- move the
...rest to the EuiIcon inside the span
- check for
aria-* props and put those on EuiIcon manually (could be later reused in other components potentially)
- add a
iconProps property which is essentially a second ...rest put on EuiIcon
Because of where the
{...rest}is, when passing in anaria-labelit gets applied to aspanwherearia-label(and most otheraria-*properties) don't work...3 possible solutions I see (not sure which is best):
...restto theEuiIconinside thespanaria-*props and put those onEuiIconmanually (could be later reused in other components potentially)iconPropsproperty which is essentially a second...restput onEuiIcon