Add a new badge component.
Review Request #15108 — Created June 9, 2026 and updated
We're starting to accumulate badge-like things in a few different
places. This change makes a new badge inside Ink that should be flexible
enough to handle our existing use cases.This includes a "type" field that respects our existing status states
(standard, info, success, warning, and error) and includes a mode with
an icon. Custom colors can be done by overriding the CSS variables.
- Ran unit tests.
- Verified the appearance within the new storybook entry.
| Summary | ID |
|---|---|
| nzlkpnnrkuuuzwyuokutoptzmyzpwwpu |
| Description | From | Last Updated |
|---|---|---|
|
Doesn't have to be this change, but we'll also want a ink-c-badges component that can be an inline-flex of badges … |
|
|
|
Maybe it's just the roundness of the icon, but I wonder if spacing could be tightened up a bit. If … |
|
|
|
This (here and elsewhere) should be hitting the lint warning about alphabetical order of keys. Can you ensure these are … |
|
- Change Summary:
-
- Add the ability to put icons on either side
- Adjust spacing when an icon is present.
- Commits:
-
Summary ID nzlkpnnrkuuuzwyuokutoptzmyzpwwpu nzlkpnnrkuuuzwyuokutoptzmyzpwwpu - Diff:
-
Revision 2 (+1528)
Checks run (2 succeeded)
-
-
Doesn't have to be this change, but we'll also want a
ink-c-badgescomponent that can be an inline-flex of badges with standardized spacing and flex wrapping (mirroring what we have in Review Board for a list of badges). -
This (here and elsewhere) should be hitting the lint warning about alphabetical order of keys. Can you ensure these are all in sorted order?
- Commits:
-
Summary ID nzlkpnnrkuuuzwyuokutoptzmyzpwwpu nzlkpnnrkuuuzwyuokutoptzmyzpwwpu - Diff:
-
Revision 3 (+1528)
