Skip to content

Commit

Permalink
v4 Examples/Floating-labels: fix bad behavior with autofill
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardogoncalves authored and mdo committed Oct 27, 2020
1 parent a1b2071 commit 61b5efb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions site/docs/4.5/examples/floating-labels/floating-labels.css
Expand Up @@ -103,6 +103,13 @@ body {
color: #777;
}

.form-label-group input:-webkit-autofill ~ label {
padding-top: .25rem;
padding-bottom: .25rem;
font-size: 12px;
color: #777;
}

/* Fallback for Edge
-------------------------------------------------- */
@supports (-ms-ime-align: auto) {
Expand Down

0 comments on commit 61b5efb

Please sign in to comment.