Skip to content

Commit f34c8f4

Browse files
fix(badge): dot styling (#4741)
* fix(badge): dot styling Only the "dots" (empty badges) sizs are supposed to get calculated with their border included. * auto update snapshots (#4743) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7afc210 commit f34c8f4

File tree

5 files changed

+1
-2
lines changed

5 files changed

+1
-2
lines changed
Loading
-397 Bytes
Loading
-277 Bytes
Loading
-351 Bytes
Loading

packages/components/src/components/badge/badge.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@
5656
font-weight: 700;
5757

5858
// Added a minimum inline size, especially for single-character content, to ensure that it won't be any narrower than a circle.
59-
box-sizing: content-box;
60-
6159
&:not(:empty) {
6260
min-inline-size: calc(1.4em - 2 * #{variables.$db-spacing-fixed-2xs});
61+
box-sizing: content-box;
6362
}
6463

6564
// Icon specific settings

0 commit comments

Comments
 (0)