Skip to content

Commit

Permalink
Update floating-labels.css
Browse files Browse the repository at this point in the history
Duplicated the rule to `input:-webkit-autofill` to prevent the invalidation of the whole declaration block as pointed by @ffoodd
  • Loading branch information
eduardogoncalves committed Oct 22, 2020
1 parent eeb893f commit 81cae34
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -76,7 +76,13 @@ body {
color: #777;
}

.form-label-group input:not(:placeholder-shown) ~ label,
.form-label-group input:not(:placeholder-shown) ~ label {
padding-top: .25rem;
padding-bottom: .25rem;
font-size: 12px;
color: #777;
}

.form-label-group input:-webkit-autofill ~ label {
padding-top: .25rem;
padding-bottom: .25rem;
Expand Down

0 comments on commit 81cae34

Please sign in to comment.