Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Floating labels improvements #30966

Merged
merged 2 commits into from Jun 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -23,13 +23,13 @@ body {
margin-bottom: 1rem;
}

.form-label-group > input,
.form-label-group > label {
.form-label-group input,
.form-label-group label {
height: 3.125rem;
padding: .75rem;
}

.form-label-group > label {
.form-label-group label {
position: absolute;
top: 0;
left: 0;
Expand All @@ -47,11 +47,11 @@ body {
color: transparent;
}

.form-label-group input::-ms-input-placeholder {
.form-label-group input::-moz-placeholder {
color: transparent;
}

.form-label-group input::-moz-placeholder {
.form-label-group input::-ms-input-placeholder {
color: transparent;
}

Expand Down Expand Up @@ -86,9 +86,15 @@ body {
/* Fallback for Edge
-------------------------------------------------- */
@supports (-ms-ime-align: auto) {
.form-label-group > label {
display: none;
.form-label-group {
display: flex;
flex-direction: column-reverse;
}

.form-label-group label {
position: static;
}

.form-label-group input::-ms-input-placeholder {
color: #777;
}
Expand Down