Skip to content

Enhance EuiBadge and deprecate EuiBetaBadge #9268

@ek-so

Description

@ek-so

Problem

  • Badges that we typically use now in Kibana tend to be too prominent, and do not allow more nuanced accents, which makes the pages and other interface elements look more cluttered
  • They are quite close to the buttons (same squared form), which is not a problem per se, but it would be nice to be bale to distinguish those 2 elements more clearly
  • Beta badges look outdated. because of the all-caps text, especially since it's used sometimes with long labels (like tech preview), and because it can't really be properly visually aligned. Those badges are also missing certain color variants we need ("New" badge that should be primary color), and can't be used together with regular badges because of inconsistency.

Proposed solution:

  1. Enrich the number of variants offered by EuiBadge with "light" color combination (lighter background, darker text)
  2. Change the form of the badge (radii) to be circled
  3. Change the layout to look more balanced in case when there's only text and/or icons:
Image

Figma with proposed changes


  1. Find and replace EuiBetaBadge usages with the new unified component, and deprecate EuiBetaBadge.
    A note regarding beta and tech preview badges change: yes, they become similar to regular badges, but they have unique text labels and icons, and they are used in a standalone fashion in designated areas, not typically occupied by other badges. This change allows not only to preserve their original function, but also to consider more flexible and visually appealing color combination for "new" badge, that will be used alongside these badges.
Image
  1. When the code change is done, merge Figma branch into master too (either @ek-so or @JoseLuisGJ).

Open questions

  • Should we make a light badge default version to make interface lighter and cleaner overall? (if so, we'll need to ask teams that are responsible for that to review their pages specifically for alerts and warning badges; although it won't break things per se, it might reduce a visual sense of urgency and impact UX therefore) — perhaps, make a test deployment for teams to check the change.

    Example of changing defaults Image
  • Should we create an opinionated Kibana badge that will be used for tech preview, beta and new cases, but would be built on top of the universal badge?

Metadata

Metadata

Assignees

Labels

requestClear use case, business priority. Requires a clear yes/no answer or coordination.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions