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

Commit e943833

Browse files
authored
fix: reverted floating-label to be transparent again (#1831)
1 parent 2e3572b commit e943833

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

dist/floating-label/floating-label.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ div.floating-label {
88
display: block;
99
}
1010
label.floating-label__label {
11-
background-color: var(--floating-label-background-color, var(--color-background-secondary));
1211
color: var(--floating-label-color, var(--color-foreground-primary));
12+
background-color: transparent;
1313
display: inline-block;
1414
left: 16px;
1515
overflow: hidden;
@@ -24,7 +24,6 @@ label.floating-label__label {
2424
z-index: 1;
2525
}
2626
label.floating-label__label--focus {
27-
background-color: var(--floating-label-focus-background-color, var(--color-background-primary));
2827
color: var(--color-background-inverse);
2928
}
3029
.floating-label--large label.floating-label__label {
@@ -41,7 +40,6 @@ label.floating-label__label--animate {
4140
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);
4241
}
4342
label.floating-label__label--disabled {
44-
background-color: var(--floating-label-disabled-background-color, var(--color-background-secondary));
4543
color: var(--floating-label-disabled-color, var(--color-foreground-disabled));
4644
}
4745
label.floating-label__label--invalid {

src/less/floating-label/floating-label.less

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

1616
label.floating-label__label {
17-
.background-color-token(floating-label-background-color, color-background-secondary);
1817
.color-token(floating-label-color, color-foreground-primary);
18+
19+
background-color: transparent;
1920
display: inline-block;
2021
left: 16px;
2122
overflow: hidden;
@@ -31,7 +32,6 @@ label.floating-label__label {
3132
}
3233

3334
label.floating-label__label--focus {
34-
.background-color-token(floating-label-focus-background-color, color-background-primary);
3535
color: var(--color-background-inverse);
3636
}
3737

@@ -54,7 +54,6 @@ label.floating-label__label--animate {
5454
}
5555

5656
label.floating-label__label--disabled {
57-
.background-color-token(floating-label-disabled-background-color, color-background-secondary);
5857
.color-token(floating-label-disabled-color, color-foreground-disabled);
5958
}
6059

0 commit comments

Comments
 (0)