Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(text-field): Update forlint
Browse files Browse the repository at this point in the history
  • Loading branch information
williamernest committed Aug 24, 2018
1 parent 4d26f65 commit ccb41d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
3 changes: 0 additions & 3 deletions packages/mdc-textfield/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@
// Outlined uses 16px for text alignment when using a trailing icon.
&.mdc-text-field--outlined {
@include mdc-text-field-icon-horizontal-position_(right, $mdc-text-field-icon-position, $mdc-text-field-icon-padding);

}
}

Expand All @@ -384,7 +383,6 @@
}

// Full Width

@mixin mdc-text-field-fullwidth_ {
width: 100%;

Expand All @@ -405,7 +403,6 @@
}

// Textarea

@mixin mdc-text-field-textarea-disabled_ {
@include mdc-text-field-textarea-stroke-color_($mdc-textarea-disabled-border-color);
@include mdc-text-field-textarea-fill-color_($mdc-textarea-disabled-background);
Expand Down
14 changes: 5 additions & 9 deletions packages/mdc-textfield/mdc-text-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@
overflow: hidden;
will-change: opacity, transform, color;

// stylelint-disable-next-line plugin/selector-bem-pattern
.mdc-floating-label {
@include mdc-rtl-reflexive-position(left, 12px);

pointer-events: none;
}
}

Expand Down Expand Up @@ -109,20 +112,13 @@
box-shadow: none;
}
}

// stylelint-disable plugin/selector-bem-pattern
.mdc-floating-label {
pointer-events: none;
}

// Move label when text-field gets autofilled in Chrome
// stylelint-disable-next-line plugin/selector-bem-pattern
// Move label when text-field gets auto-filled in Chrome.
.mdc-text-field__input:-webkit-autofill + .mdc-floating-label {
transform: translateY(-50%) scale(.75);
cursor: auto;
}

// stylelint-enable plugin/selector-bem-pattern

.mdc-text-field--outlined {
@include mdc-text-field-outlined_;
}
Expand Down

0 comments on commit ccb41d9

Please sign in to comment.