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
feat/tab/sass color mixins #1851
Merged
+181
−3
Merged
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7c658a6
WIP
8415d6a
Merge branch 'master' into feat/tab/sass-color-mixins
e5b7c65
fix(tabs): fixed merge conflict
2e071b4
Merge branch 'master' into feat/tab/sass-color-mixins
3b761a7
Merge branch 'master' into feat/tab/sass-color-mixins
c006c69
feat(tabs): update readme, add sass mixins for hover state
fa6e3f1
Merge branch 'master' into feat/tab/sass-color-mixins
314a31d
refactor(tabs): renamed ids in demo to use classes
c811dcd
Merge branch 'master' into feat/tab/sass-color-mixins
7e3d6ec
feat(tabs): update README and consolidate demo css
8c3a94e
Merge branch 'master' into feat/tab/sass-color-mixins
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,16 @@ | ||
@import "@material/theme/mixins"; | ||
|
||
@mixin mdc-tab-ink-color($color) { | ||
@include mdc-tab-label-ink-color($color); | ||
@include mdc-tab-icon-ink-color($color); | ||
} | ||
|
||
@mixin mdc-tab-label-ink-color($color) { | ||
@include mdc-theme-prop(color, $color); | ||
} | ||
|
||
@mixin mdc-tab-icon-ink-color($color) { | ||
.mdc-tab__icon { | ||
@include mdc-theme-prop(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
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.
To customize the ink color of any part of the tab, use the following mixins. We recommend you apply these mixins within CSS selectors like
.foo-tab:not(.mdc-tab--active)
to select your inactive tabs, and.foo-tab.mdc-tab--active
to select your active tabs.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 definitely have to get better at Readmes
Thanks!
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.
Maybe also mention the
:hover
case as well.