From 239f7fc4c320be62fe66e46147b1549cd5802f74 Mon Sep 17 00:00:00 2001 From: "Kenneth G. Franqueiro" Date: Tue, 4 Sep 2018 16:02:58 -0400 Subject: [PATCH] chore: Add bem-linter comments where they were missing (#3504) --- packages/mdc-drawer/common.scss | 10 ++++++++++ packages/mdc-tab-bar/mdc-tab-bar.scss | 4 ++++ packages/mdc-tab-indicator/mdc-tab-indicator.scss | 5 +++++ packages/mdc-tab/mdc-tab.scss | 4 ++++ 4 files changed, 23 insertions(+) diff --git a/packages/mdc-drawer/common.scss b/packages/mdc-drawer/common.scss index 48600259ec7..3d5b48f3821 100644 --- a/packages/mdc-drawer/common.scss +++ b/packages/mdc-drawer/common.scss @@ -30,6 +30,8 @@ @import "./variables"; @import "./mixins"; +// postcss-bem-linter: define drawer + .mdc-drawer { @include mdc-drawer-title-ink-color($mdc-drawer-title-ink-color); @include mdc-drawer-subtitle-ink-color($mdc-drawer-subtitle-ink-color); @@ -61,6 +63,7 @@ border-left-style: solid; } + // postcss-bem-linter: ignore .mdc-list-item { @include mdc-typography(subtitle2); @@ -70,14 +73,17 @@ padding: 0 $mdc-drawer-surface-padding / 2; } + // postcss-bem-linter: ignore .mdc-list-item:nth-child(1) { margin-top: 2px; } + // postcss-bem-linter: ignore .mdc-list-item:nth-last-child(1) { margin-bottom: 0; } + // postcss-bem-linter: ignore .mdc-list-group__subheader { @include mdc-typography(body2); @include mdc-typography-baseline-top(24px); @@ -86,11 +92,13 @@ padding: 0 $mdc-drawer-surface-padding; } + // postcss-bem-linter: ignore .mdc-list-divider { margin: 3px 0 4px 0; } // Prevents list item children from being included in the click target. + // postcss-bem-linter: ignore .mdc-list-item__text, .mdc-list-item__graphic { pointer-events: none; @@ -152,3 +160,5 @@ height: 100%; overflow-y: auto; } + +// postcss-bem-linter: end diff --git a/packages/mdc-tab-bar/mdc-tab-bar.scss b/packages/mdc-tab-bar/mdc-tab-bar.scss index 1e36f4b9a66..c3ae58916dc 100644 --- a/packages/mdc-tab-bar/mdc-tab-bar.scss +++ b/packages/mdc-tab-bar/mdc-tab-bar.scss @@ -23,6 +23,10 @@ @import "./mixins"; +// postcss-bem-linter: define tab-bar + .mdc-tab-bar { @include mdc-tab-bar-width(100%); } + +// postcss-bem-linter: end diff --git a/packages/mdc-tab-indicator/mdc-tab-indicator.scss b/packages/mdc-tab-indicator/mdc-tab-indicator.scss index 6d86d7c3cba..cab4affc3b7 100644 --- a/packages/mdc-tab-indicator/mdc-tab-indicator.scss +++ b/packages/mdc-tab-indicator/mdc-tab-indicator.scss @@ -24,6 +24,8 @@ @import "@material/animation/variables"; @import "./mixins"; +// postcss-bem-linter: define tab-indicator + .mdc-tab-indicator { @include mdc-tab-indicator-underline-color(primary); @include mdc-tab-indicator-underline-height(2px); @@ -73,6 +75,9 @@ transition: 150ms opacity linear; } +// postcss-bem-linter: ignore .mdc-tab-indicator--active.mdc-tab-indicator--fade > .mdc-tab-indicator__content { transition-delay: 100ms; } + +// postcss-bem-linter: end diff --git a/packages/mdc-tab/mdc-tab.scss b/packages/mdc-tab/mdc-tab.scss index 8e7b58ae15d..3989e77fb2c 100644 --- a/packages/mdc-tab/mdc-tab.scss +++ b/packages/mdc-tab/mdc-tab.scss @@ -28,6 +28,8 @@ @import "./mixins"; @import "./variables"; +// postcss-bem-linter: define tab + .mdc-tab { @include mdc-tab-text-label-color(on-surface); @include mdc-tab-icon-color(on-surface); @@ -133,3 +135,5 @@ .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon + .mdc-tab__text-label { @include mdc-rtl-reflexive-box(padding, left, 8px); } + +// postcss-bem-linter: end