Skip to content

Commit

Permalink
docs(EuiBadge): fix callout formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tkajtoch committed Jan 4, 2024
1 parent 41b092f commit e139399
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/docs/02_components/display/badge/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ Badges can use icons on the left and right (default) sides.

Badges can have `onClick` events applied to the badge itself or the icon within the badge. The latter option is useful for when you might use badges in other components (like a tag system with autocomplete where you need close events).

:::note

:::note onClick with iconOnClick
`onClick` with `iconOnClick`

When providing both these click handlers, **EuiBadge** must alter the contents so that it does not contain nested button tags. Please make note that if you provide props other than those explicit to **EuiBadge**, they will always be applied to the main `button` tag which may be inside of the outer most tag.

Expand Down

0 comments on commit e139399

Please sign in to comment.