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

Commit b817c49

Browse files
authored
feat(floating-label): updated unselected color of label (#2506)
1 parent a859c31 commit b817c49

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.changeset/green-falcons-thank.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(floating-label): updated unselected color of label

dist/floating-label/floating-label.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ div.floating-label {
1212

1313
label.floating-label__label {
1414
background-color: initial;
15-
color: var(--floating-label-color, var(--color-foreground-primary));
15+
color: var(--floating-label-color, var(--color-foreground-secondary));
1616
display: inline-block;
1717
left: 16px;
1818
overflow: hidden;
@@ -38,7 +38,7 @@ label.floating-label__label {
3838
}
3939

4040
label.floating-label__label--focus {
41-
color: var(--color-background-inverse);
41+
color: var(--floating-label-focus-color, var(--color-foreground-primary));
4242
}
4343

4444
.floating-label--opaque label.floating-label__label--focus {

src/sass/floating-label/floating-label.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ div.floating-label {
1414
}
1515

1616
label.floating-label__label {
17-
@include color-token(floating-label-color, color-foreground-primary);
17+
@include color-token(floating-label-color, color-foreground-secondary);
1818

1919
background-color: transparent;
2020
display: inline-block;
@@ -43,7 +43,7 @@ label.floating-label__label {
4343
}
4444

4545
label.floating-label__label--focus {
46-
color: var(--color-background-inverse);
46+
@include color-token(floating-label-focus-color, color-foreground-primary);
4747
}
4848

4949
.floating-label--opaque label.floating-label__label--focus {

0 commit comments

Comments
 (0)