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

Commit 6f51583

Browse files
authored
feat(badge): added new border (#2556)
1 parent c59f7e6 commit 6f51583

File tree

8 files changed

+29
-1
lines changed

8 files changed

+29
-1
lines changed

.changeset/kind-flies-turn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ebay/skin": minor
3+
---
4+
5+
feat(badge): added new border

dist/badge/badge.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
--badge-background-color,
55
var(--color-background-attention)
66
);
7+
border: 2px solid var(--color-stroke-on-attention);
78
border-radius: 16px;
89
color: var(--badge-foreground-color, var(--color-foreground-on-attention));
910
display: inline-flex;

dist/tokens/evo-dark.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,17 @@
3434
--color-foreground-on-strong: var(--color-neutral-800);
3535
--color-stroke-default: var(--color-neutral-600);
3636
--color-stroke-accent: var(--color-blue-400);
37+
--color-stroke-on-accent: var(--color-neutral-800);
3738
--color-stroke-attention: var(--color-red-400);
39+
--color-stroke-on-attention: var(--color-neutral-800);
3840
--color-stroke-confirmation: var(--color-kiwi-600);
41+
--color-stroke-on-confirmation: var(--color-neutral-800);
3942
--color-stroke-information: var(--color-blue-400);
4043
--color-stroke-disabled: var(--color-neutral-500);
44+
--color-stroke-on-disabled: var(--color-neutral-800);
4145
--color-stroke-strong: var(--color-neutral-100);
4246
--color-stroke-subtle: var(--color-neutral-600);
47+
--color-stroke-inverse: var(--color-neutral-800);
4348
--color-state-visited: var(--color-magenta-3);
4449
--color-state-primary-hover: #17212c;
4550
--color-state-primary-active: #1e2a38;

dist/tokens/evo-light.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,16 @@
3333
--color-foreground-on-strong: var(--color-neutral-100);
3434
--color-stroke-default: var(--color-neutral-500);
3535
--color-stroke-accent: var(--color-blue-500);
36+
--color-stroke-on-accent: var(--color-neutral-100);
3637
--color-stroke-attention: var(--color-red-500);
38+
--color-stroke-on-attention: var(--color-neutral-100);
3739
--color-stroke-confirmation: var(--color-kiwi-600);
40+
--color-stroke-on-confirmation: var(--color-neutral-100);
3841
--color-stroke-information: var(--color-blue-500);
3942
--color-stroke-disabled: var(--color-neutral-400);
43+
--color-stroke-on-disabled: var(--color-neutral-100);
4044
--color-stroke-strong: var(--color-neutral-800);
45+
--color-stroke-inverse: var(--color-neutral-100);
4146
--color-stroke-subtle: var(--color-neutral-300);
4247
--color-state-visited: var(--color-pink-600);
4348
--color-state-focus-stroke: #005fcc;

src/components/section-header.marko

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ $ if (dsComponent.length > 0) {
88
style {
99
.section-header {
1010
display: flex;
11+
flex-wrap: wrap;
1112
margin: var(--spacing-200) 0 var(--spacing-200);
13+
justify-content: space-between
1214
}
1315
1416
.section-header h1 {
@@ -21,7 +23,6 @@ style {
2123
background-color: var(--color-background-tertiary);
2224
font-family: monospace, sans-serif, Helvetica;
2325
font-size: var(--font-size-small);
24-
margin-left: auto;
2526
padding: 2px 4px;
2627
}
2728
}

src/sass/badge/badge.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
.badge {
55
align-items: center;
6+
border: 2px solid var(--color-stroke-on-attention);
67
border-radius: 16px;
78
display: inline-flex;
89
font-size: 10px;

src/tokens/evo-dark.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,17 @@
3434
--color-foreground-on-strong: var(--color-neutral-800);
3535
--color-stroke-default: var(--color-neutral-600);
3636
--color-stroke-accent: var(--color-blue-400);
37+
--color-stroke-on-accent: var(--color-neutral-800);
3738
--color-stroke-attention: var(--color-red-400);
39+
--color-stroke-on-attention: var(--color-neutral-800);
3840
--color-stroke-confirmation: var(--color-kiwi-600);
41+
--color-stroke-on-confirmation: var(--color-neutral-800);
3942
--color-stroke-information: var(--color-blue-400);
4043
--color-stroke-disabled: var(--color-neutral-500);
44+
--color-stroke-on-disabled: var(--color-neutral-800);
4145
--color-stroke-strong: var(--color-neutral-100);
4246
--color-stroke-subtle: var(--color-neutral-600);
47+
--color-stroke-inverse: var(--color-neutral-800);
4348
--color-state-visited: var(--color-magenta-3);
4449
--color-state-primary-hover: #17212c;
4550
--color-state-primary-active: #1e2a38;

src/tokens/evo-light.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,16 @@
3333
--color-foreground-on-strong: var(--color-neutral-100);
3434
--color-stroke-default: var(--color-neutral-500);
3535
--color-stroke-accent: var(--color-blue-500);
36+
--color-stroke-on-accent: var(--color-neutral-100);
3637
--color-stroke-attention: var(--color-red-500);
38+
--color-stroke-on-attention: var(--color-neutral-100);
3739
--color-stroke-confirmation: var(--color-kiwi-600);
40+
--color-stroke-on-confirmation: var(--color-neutral-100);
3841
--color-stroke-information: var(--color-blue-500);
3942
--color-stroke-disabled: var(--color-neutral-400);
43+
--color-stroke-on-disabled: var(--color-neutral-100);
4044
--color-stroke-strong: var(--color-neutral-800);
45+
--color-stroke-inverse: var(--color-neutral-100);
4146
--color-stroke-subtle: var(--color-neutral-300);
4247
--color-state-visited: var(--color-pink-600);
4348
--color-state-focus-stroke: #005fcc;

0 commit comments

Comments
 (0)