From fe0b7bc257a2ba3f704fd6b9c8c54a16e1c169ed Mon Sep 17 00:00:00 2001 From: "Kenneth G. Franqueiro" Date: Fri, 3 Aug 2018 16:20:24 -0400 Subject: [PATCH] fix(text-field): Stop emitting unused CSS in Text Field & Select (#3293) --- packages/mdc-select/mdc-select.scss | 5 +---- packages/mdc-textfield/_mixins.scss | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/mdc-select/mdc-select.scss b/packages/mdc-select/mdc-select.scss index 1a0d5bac325..970ce94726c 100644 --- a/packages/mdc-select/mdc-select.scss +++ b/packages/mdc-select/mdc-select.scss @@ -98,10 +98,7 @@ // Select Box intentionally omits press ripple, so each state needs to be specified individually @include mdc-states-base-color($mdc-select-ink-color); @include mdc-states-hover-opacity(mdc-states-opacity($mdc-select-ink-color, hover)); - @include mdc-states-focus-opacity( - mdc-states-opacity($mdc-select-ink-color, focus), - $has-nested-focusable-element: true - ); + @include mdc-states-focus-opacity(mdc-states-opacity($mdc-select-ink-color, focus)); height: 56px; border-radius: 4px 4px 0 0; diff --git a/packages/mdc-textfield/_mixins.scss b/packages/mdc-textfield/_mixins.scss index 3c8e2185da8..d72c2ced09d 100644 --- a/packages/mdc-textfield/_mixins.scss +++ b/packages/mdc-textfield/_mixins.scss @@ -326,10 +326,7 @@ // Text Field Box intentionally omits press ripple, so each state needs to be specified individually @include mdc-states-base-color($mdc-text-field-ink-color); @include mdc-states-hover-opacity(mdc-states-opacity($mdc-text-field-ink-color, hover)); - @include mdc-states-focus-opacity( - mdc-states-opacity($mdc-text-field-ink-color, focus), - $has-nested-focusable-element: true - ); + @include mdc-states-focus-opacity(mdc-states-opacity($mdc-text-field-ink-color, focus)); @include mdc-ripple-radius-bounded; @include mdc-text-field-box-corner-radius($mdc-text-field-border-radius); @include mdc-text-field-box-fill-color($mdc-text-field-box-background);