Skip to content

Commit 52598af

Browse files
authored
Fix spacing and sizing of Badge and Badge Content (#13648)
* Minor style fixes from 15626 * Add gap to badge link
1 parent 17b5f91 commit 52598af

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/amo/components/Badge/styles.scss

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ $badge-size-small: 16px;
88
font-size: $font-size-default;
99
line-height: $line-height-compressed;
1010
display: flex;
11+
gap: 6px;
1112
align-items: center;
1213
white-space: nowrap;
13-
padding: 3px 6px 3px 3px;
14+
padding: 4px 6px;
1415

1516
.Badge-link {
1617
color: inherit;
@@ -19,6 +20,7 @@ $badge-size-small: 16px;
1920
flex-grow: 0;
2021
flex-shrink: 0;
2122
text-decoration: none;
23+
gap: 6px;
2224

2325
&,
2426
&:link,
@@ -40,6 +42,7 @@ $badge-size-small: 16px;
4042
border: 1px solid $color-light-gray-40;
4143
border-radius: 20px;
4244
display: inline-flex;
45+
gap: 6px;
4346
box-sizing: border-box;
4447

4548
&:hover,
@@ -63,16 +66,12 @@ $badge-size-small: 16px;
6366
}
6467
}
6568

66-
.Badge-icon + .Badge-content {
67-
@include margin-start(6px);
68-
}
69-
7069
.Badge-content--small {
7170
font-size: 12px;
7271
}
7372

7473
.Badge-content--large {
75-
font-size: $badge-size-large;
74+
font-size: 16px;
7675
}
7776

7877
.Badge-icon {

0 commit comments

Comments
 (0)