Skip to content

Commit

Permalink
🔖 [Release] Fix the input label on Firefox #469
Browse files Browse the repository at this point in the history
[Release] Fix the input label on Firefox
  • Loading branch information
ilyasmez authored Jun 23, 2020
2 parents 4465607 + dfd299b commit 591dead
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homeday-blocks",
"version": "11.1.1",
"version": "11.1.2",
"description": "A Vue component library built by Homeday's frontend team.",
"main": "main.js",
"repository": {
Expand Down
12 changes: 11 additions & 1 deletion src/styles/inputs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,22 @@ $focusedLabelTop: 5px;
z-index: 9;
pointer-events: none;

#{$f}--filled &, #{$f}--active &, #{$f}--select &, #{$f}--double &, #{$f}__input:-webkit-autofill + & {
@mixin minimized {
font-size: 14px;
line-height: 18px;
top: $focusedLabelTop;
}

#{$f}--filled &, #{$f}--active &, #{$f}--select &, #{$f}--double & {
@include minimized;
}

// We are seperating this declaration from the block above
// because non-webkit engines will ignore the whole block, e.g. Gecko
#{$f}__input:-webkit-autofill + & {
@include minimized;
}

#{$f}--active & {
color: getShade($secondary-color, 110);
}
Expand Down

0 comments on commit 591dead

Please sign in to comment.