Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 3 additions & 2 deletions packages/components/src/components/badge/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
.kol-badge {
/* Visible with forced colors */
outline: transparent solid to-rem(1);
display: inline-flex;
place-items: center;
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;

align-items: center;
justify-content: space-between;

.kol-badge__smart-button {
.button {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion packages/themes/bwst/src/components/badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
@include kol-icon-theme;
.kol-badge {
border-radius: var(--border-radius);
display: inline-flex;
font-style: normal;

&--has-smart-button {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion packages/themes/default/src/components/badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
@include kol-icon-theme;
.kol-badge {
border-radius: var(--border-radius);
display: inline-flex;
font-style: normal;

&--has-smart-button {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading