Skip to content

Commit

Permalink
feat(floating-label): updated unselected color of label (#2506)
Browse files Browse the repository at this point in the history
  • Loading branch information
agliga authored Dec 16, 2024
1 parent a859c31 commit b817c49
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/green-falcons-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ebay/skin": minor
---

feat(floating-label): updated unselected color of label
4 changes: 2 additions & 2 deletions dist/floating-label/floating-label.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ div.floating-label {

label.floating-label__label {
background-color: initial;
color: var(--floating-label-color, var(--color-foreground-primary));
color: var(--floating-label-color, var(--color-foreground-secondary));
display: inline-block;
left: 16px;
overflow: hidden;
Expand All @@ -38,7 +38,7 @@ label.floating-label__label {
}

label.floating-label__label--focus {
color: var(--color-background-inverse);
color: var(--floating-label-focus-color, var(--color-foreground-primary));
}

.floating-label--opaque label.floating-label__label--focus {
Expand Down
4 changes: 2 additions & 2 deletions src/sass/floating-label/floating-label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ div.floating-label {
}

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

background-color: transparent;
display: inline-block;
Expand Down Expand Up @@ -43,7 +43,7 @@ label.floating-label__label {
}

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

.floating-label--opaque label.floating-label__label--focus {
Expand Down

0 comments on commit b817c49

Please sign in to comment.