Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/components/src/components/badge/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
.kol-badge {
/* Visible with forced colors */
outline: transparent solid to-rem(1);
display: inline-flex;
display: flex;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Changing display: inline-flex to display: flex makes the badge a block-level element. This causes the component to occupy the full width of its container and start on a new line, which is typically not the expected behavior for a badge. Badges are generally expected to be inline elements. If the goal is to allow the badge to grow in certain contexts, it is recommended to keep inline-flex and manage the growth via the host element's styling (e.g., flex-grow or width) in the parent layout.

Suggested change
display: flex;
display: inline-flex;

place-items: center;

.kol-badge__smart-button {
Expand Down
Loading