This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
chore(tabs): move indicator sass into custom mixins #1965
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
51614c7
chore(tabs): move indicator sass into custom mixins
c649fde
Merge branch 'master' into chore/tabs/color-sass-mixins
ccaf108
Merge branch 'master' into chore/tabs/color-sass-mixins
ac6883f
Merge branch 'master' into chore/tabs/color-sass-mixins
d98e5d8
chore(tabs): removed .mdc-toolbar specific selectors. Also updated de…
08f9802
Merge branch 'chore/tabs/color-sass-mixins' of github.com:material-co…
f312595
Merge branch 'master' into chore/tabs/color-sass-mixins
5406128
Merge branch 'master' into chore/tabs/color-sass-mixins
a9c0595
Merge branch 'master' into chore/tabs/color-sass-mixins
0a3fe56
Merge branch 'master' into chore/tabs/color-sass-mixins
81a9c46
Revert "chore(tabs): removed .mdc-toolbar specific selectors. Also up…
63c4e27
chore(tabs): updated readme and moved indicator-ink-color mixin into …
08118e8
Merge branch 'master' into chore/tabs/color-sass-mixins
cd10534
Merge branch 'master' into chore/tabs/color-sass-mixins
97469b8
fix(text-field): css lint fix
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@import "@material/theme/mixins"; | ||
|
||
@mixin mdc-tab-bar-indicator-ink-color($color) { | ||
.mdc-tab-bar__indicator, | ||
.mdc-tab__indicator { | ||
@include mdc-theme-prop(background-color, $color); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
@import "@material/animation/functions"; | ||
@import "@material/theme/mixins"; | ||
@import "@material/rtl/mixins"; | ||
@import "./mixins"; | ||
@import "../mixins"; | ||
|
||
.mdc-tab-bar__indicator { | ||
|
@@ -25,6 +26,11 @@ | |
} | ||
|
||
// postcss-bem-linter: define tab-bar | ||
|
||
@at-root { | ||
@include mdc-tab-bar-indicator-ink-color(text-primary-on-light); | ||
} | ||
|
||
.mdc-tab-bar { | ||
display: table; | ||
position: relative; | ||
|
@@ -77,34 +83,3 @@ | |
.mdc-tab-bar--icons-with-text { | ||
height: 72px; | ||
} | ||
|
||
.mdc-tab-bar--indicator-primary, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removing these --primary and --accent is a breaking change, so remember to add that to the commit |
||
.mdc-toolbar .mdc-tab-bar--indicator-primary { | ||
.mdc-tab-bar__indicator { | ||
@include mdc-theme-prop(background-color, primary); | ||
|
||
@include mdc-theme-dark(".mdc-tab-bar") { | ||
@include mdc-theme-prop(background-color, primary); | ||
} | ||
} | ||
|
||
&.mdc-tab-bar:not(.mdc-tab-bar-upgraded) .mdc-tab::after { | ||
@include mdc-theme-prop(background-color, primary); | ||
} | ||
} | ||
|
||
.mdc-tab-bar--indicator-accent, | ||
.mdc-toolbar .mdc-tab-bar--indicator-accent { | ||
.mdc-tab-bar__indicator { | ||
@include mdc-theme-prop(background-color, secondary); | ||
|
||
@include mdc-theme-dark(".mdc-tab-bar") { | ||
@include mdc-theme-prop(background-color, secondary); | ||
}; | ||
} | ||
|
||
&.mdc-tab-bar:not(.mdc-tab-bar-upgraded) .mdc-tab::after { | ||
@include mdc-theme-prop(background-color, secondary); | ||
} | ||
} | ||
// postcss-bem-linter: end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this example seems to do the same thing as above...do we really need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its similar, but a different color (primary vs secondary). Also we need it to target the toolbar specifier. If we don't have that we cannot override the color. If we remove the toolbar scss, we can probably get around this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll update this after I remove toolbar specific sass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in #1979