Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/eui/changelogs/upcoming/9100.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Accessibility**

- Fixed incorrect role attribute on `EuiIcon` and `EuiBetaBadge`
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ exports[`EuiBetaBadge props tooltip and anchorProps are rendered 1`] = `
>
<span
class="euiBetaBadge emotion-euiBetaBadge-hollow-m-baseline"
role="button"
tabindex="0"
>
Beta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,13 @@ export const EuiBetaBadge: FunctionComponent<EuiBetaBadgeProps> = ({
title={title || label}
anchorProps={anchorProps}
>
<span tabIndex={0} css={cssStyles} className={classes} {...rest}>
<span
tabIndex={0}
role="button"
css={cssStyles}
className={classes}
{...rest}
>
{icon || label}
</span>
</EuiToolTip>
Expand Down
Loading