File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
packages/components/src/components/badge Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 54
54
block-size : fit-content ;
55
55
inline-size : fit-content ;
56
56
font-weight : 700 ;
57
- min-inline-size : calc (1.4em - 2 * #{variables .$db-spacing-fixed-2xs } );
58
- box-sizing : content-box ;
57
+
58
+ // Added a min-inline-size especially for single character contents, to ensure that it won't get any narrower than a circle.
59
+ & :not (:empty ) {
60
+ min-inline-size : calc (1.4em - 2 * #{variables .$db-spacing-fixed-2xs } );
61
+ box-sizing : content-box ;
62
+ }
59
63
60
64
& :has (.db-icon ) {
61
65
padding : variables .$db-spacing-fixed-3xs ;
62
66
}
63
67
64
- > * ,
68
+ >* ,
65
69
.db-icon {
66
70
@extend %db-overwrite-font-size-2xs ;
67
71
}
78
82
padding : variables .$db-spacing-fixed-2xs ;
79
83
}
80
84
81
- > * ,
85
+ >* ,
82
86
.db-icon {
83
87
@extend %db-overwrite-font-size-sm ;
84
88
}
85
89
}
86
90
87
91
& :empty ,
88
- > span :empty {
92
+ >span :empty {
89
93
block-size : var (--badge-size );
90
94
inline-size : var (--badge-size );
91
95
padding : 0 ;
You can’t perform that action at this time.
0 commit comments