Skip to content

Conversation

@tkajtoch
Copy link
Member

@tkajtoch tkajtoch commented Jan 8, 2026

Summary

Resolves #9299

This PR updates the styles of the EuiBadge component to apply the latest design changes - rounded corners, updated paddings, and spacing between text and icon.

Please note that the VRTs highlight rather important changes that need approval from the design team:

  1. the EuiBadge component is used for EuiComboBox items, which results in these having rounded corners
  2. EuiSelectableList items use EuiBadge to display the icon

Both of the above could be reverted to the old, less rounded design if necessary, but that would mean more code changes.

Why are we making this change?

Part of the EuiBadge design update epic.

Screenshots #

Screenshot 2026-01-09 at 13 19 08

Impact to users

These style changes are global, and there's no way to opt out of them. The changes themselves are minimal and limited to just the presentation layer. No logic changes have been implemented.

QA

Remove or strikethrough items that do not apply to your PR.

General checklist

  • Browser QA
    • Checked in both light and dark modes
    • Checked in both MacOS and Windows high contrast modes
    • Checked in mobile
    • Checked in Chrome, Safari, Edge, and Firefox
  • Code quality checklist
  • Release checklist
    • A changelog entry exists and is marked appropriately
  • Designer checklist
    • If applicable, file an issue to update EUI's Figma library with any corresponding UI changes. (This is an internal repo, if you are external to Elastic, ask a maintainer to submit this request)

@tkajtoch tkajtoch requested a review from a team as a code owner January 8, 2026 22:47
@tkajtoch tkajtoch changed the base branch from main to feat/eui-badge-updates January 8, 2026 22:48
@tkajtoch tkajtoch self-assigned this Jan 8, 2026
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ek-so Can you please check this?

Copy link
Contributor

@ek-so ek-so Jan 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imo, looks good (we'll need to decrease spaces between badges, but that's another story :))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ek-so Can you please check this?

I don't know if this return symbol can be left as-is right now, but I know we're planning to remove it altogether soon, so maybe that's okay?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'd say this is acceptable. And yes, I hope we can get rid of it there

@tkajtoch tkajtoch requested a review from ek-so January 8, 2026 23:22
@weronikaolejniczak weronikaolejniczak self-requested a review January 9, 2026 09:45
Copy link
Contributor

@weronikaolejniczak weronikaolejniczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ VRT updates are as expected. I ran them locally to double-check all tests pass.
✅ Code changes look as expected.

Thank you for adding the kitchen sink story 🙏🏻 I really like that pattern.

🟢 Good to go (especially because we're merging into a feature branch).

right: css`
&:not(:only-child) {
${logicalCSS('margin-left', euiTheme.size.xs)}
${logicalCSS('margin-left', euiTheme.size.xxs)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @tkajtoch, thank you so much for the changes 🙏🏻 Looks perfect, but I have only one question/neat: I know in design it is 8px padding from left/right to the icon. But since here in code the border is counted too, it looks just a liiiittle too much, and I think we could go for 6px from both sider. Would that change be possible?
CleanShot 2026-01-09 at 13 57 46@2x
CleanShot 2026-01-09 at 13 58 18@2x
CleanShot 2026-01-09 at 13 58 28@2x

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @tkajtoch

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @tkajtoch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EuiBadge] Update styles to match latest design changes

4 participants