Skip to content

Commit

Permalink
chore: Add bem-linter comments where they were missing (material-comp…
Browse files Browse the repository at this point in the history
  • Loading branch information
kfranqueiro authored Sep 4, 2018
1 parent 3bcea32 commit 239f7fc
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/mdc-drawer/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -61,6 +63,7 @@
border-left-style: solid;
}

// postcss-bem-linter: ignore
.mdc-list-item {
@include mdc-typography(subtitle2);

Expand All @@ -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);
Expand All @@ -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;
Expand Down Expand Up @@ -152,3 +160,5 @@
height: 100%;
overflow-y: auto;
}

// postcss-bem-linter: end
4 changes: 4 additions & 0 deletions packages/mdc-tab-bar/mdc-tab-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions packages/mdc-tab-indicator/mdc-tab-indicator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
4 changes: 4 additions & 0 deletions packages/mdc-tab/mdc-tab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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

0 comments on commit 239f7fc

Please sign in to comment.