Skip to content

Commit

Permalink
fix: reverted floating-label to be transparent again (#1831)
Browse files Browse the repository at this point in the history
  • Loading branch information
agliga authored Aug 8, 2022
1 parent 2e3572b commit e943833
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions dist/floating-label/floating-label.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ div.floating-label {
display: block;
}
label.floating-label__label {
background-color: var(--floating-label-background-color, var(--color-background-secondary));
color: var(--floating-label-color, var(--color-foreground-primary));
background-color: transparent;
display: inline-block;
left: 16px;
overflow: hidden;
Expand All @@ -24,7 +24,6 @@ label.floating-label__label {
z-index: 1;
}
label.floating-label__label--focus {
background-color: var(--floating-label-focus-background-color, var(--color-background-primary));
color: var(--color-background-inverse);
}
.floating-label--large label.floating-label__label {
Expand All @@ -41,7 +40,6 @@ label.floating-label__label--animate {
transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), bottom 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}
label.floating-label__label--disabled {
background-color: var(--floating-label-disabled-background-color, var(--color-background-secondary));
color: var(--floating-label-disabled-color, var(--color-foreground-disabled));
}
label.floating-label__label--invalid {
Expand Down
5 changes: 2 additions & 3 deletions src/less/floating-label/floating-label.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ div.floating-label {
}

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

background-color: transparent;
display: inline-block;
left: 16px;
overflow: hidden;
Expand All @@ -31,7 +32,6 @@ label.floating-label__label {
}

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

Expand All @@ -54,7 +54,6 @@ label.floating-label__label--animate {
}

label.floating-label__label--disabled {
.background-color-token(floating-label-disabled-background-color, color-background-secondary);
.color-token(floating-label-disabled-color, color-foreground-disabled);
}

Expand Down

0 comments on commit e943833

Please sign in to comment.