Skip to content
This repository was archived by the owner on Apr 15, 2019. It is now read-only.

Commit 444d544

Browse files
Magdalena Grigorovajoneff
authored andcommitted
feat(badge): prevent expanding badge more than the button width telerik/kendo#7846
1 parent d8e1d06 commit 444d544

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scss/common/_base.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@
117117

118118
// Badge
119119
.k-badge {
120-
min-width: 1em*$line-height-lg;
120+
min-width: 1.5em*$line-height-lg;
121+
max-width: 100%;
121122
line-height: $line-height-lg;
122123
font-size: $font-size-xs;
123124
position: absolute;
@@ -129,6 +130,7 @@
129130
color: $accent-contrast;
130131
text-align: center;
131132
overflow: hidden;
133+
text-overflow: ellipsis;
132134
box-sizing: border-box;
133135
z-index: 5;
134136
}

0 commit comments

Comments
 (0)