Skip to content
Merged
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
35 changes: 0 additions & 35 deletions components/atom/badge/demo/ArticleIsFitted.js

This file was deleted.

2 changes: 1 addition & 1 deletion components/atom/badge/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const DESIGNS = {
export const BASE_CLASS = `sui-AtomBadge`
export const CLASS_ICON = `${BASE_CLASS}-icon`
export const CLASS_ICON_RIGHT = `${CLASS_ICON}--iconRight`
export const CLASS_TEXT = `${CLASS_ICON}-text`
export const CLASS_TEXT = `${BASE_CLASS}-text`

/**
* @param {object} options
Expand Down
7 changes: 7 additions & 0 deletions components/atom/badge/src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ $base-class: '.sui-AtomBadge';
color: $c-atom-badge;
fill: currentColor;
display: inline-flex;
max-width: 100%;
justify-content: center;
white-space: $ws-atom-badge;
cursor: default;
Expand Down Expand Up @@ -49,6 +50,12 @@ $base-class: '.sui-AtomBadge';
}
}

&-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

@each $design-key, $design-value in (solid: $badges, soft: $badge-soft) {
&#{$this}-design-#{$design-key} {
@each $type, $element in $design-value {
Expand Down
Loading
Loading