Skip to content

Commit

Permalink
[EuiBetaBadge] Improved the accessibility experience of EuiBetaBadge …
Browse files Browse the repository at this point in the history
…component (#7805)

Co-authored-by: Cee Chen <549407+cee-chen@users.noreply.github.com>
  • Loading branch information
alexwizp and cee-chen committed May 31, 2024
1 parent 3eda6af commit 11006c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 3 additions & 0 deletions packages/eui/changelogs/upcoming/7805.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Accessibility**

- Improved the accessibility experience of `EuiBetaBadge`
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ exports[`EuiBetaBadge props tooltip and anchorProps are rendered 1`] = `
>
<span
class="euiBetaBadge emotion-euiBetaBadge-hollow-m-baseline"
role="button"
tabindex="0"
>
Beta
Expand Down
8 changes: 1 addition & 7 deletions packages/eui/src/components/badge/beta_badge/beta_badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,7 @@ export const EuiBetaBadge: FunctionComponent<EuiBetaBadgeProps> = ({
title={title || label}
anchorProps={anchorProps}
>
<span
tabIndex={0}
css={cssStyles}
className={classes}
role="button"
{...rest}
>
<span tabIndex={0} css={cssStyles} className={classes} {...rest}>
{icon || label}
</span>
</EuiToolTip>
Expand Down

0 comments on commit 11006c3

Please sign in to comment.