Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

feat(tab): Add Tab Sass mixins targeting active state colors #4522

Merged
merged 8 commits into from
Mar 20, 2019

Conversation

bwobrien
Copy link
Contributor

No description provided.

@@ -49,10 +49,27 @@
@include mdc-tab-text-label-color($color);
}

@mixin mdc-tab-active-text-label-color($color) {
&.mdc-tab--active .mdc-tab__text-label {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these mixins just do what was being done in tab-bar.scss before and reuse other mixins within &.mdc-tab--active? That way there's no risk of updating one mixin and forgetting to update these other mixins in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean omitting &.mdc-tab--active here and requiring developers to specify it themselves?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nevermind, I get it, reuse mdc-tab-text-label-color. Of course, will make the change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@mdc-web-bot
Copy link
Collaborator

All 627 screenshot tests passed for commit 6e88be3 vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 627 screenshot tests passed for commit 94087e7 vs. master! 💯🎉

…rial-components-web into feat/tab-mixins

Merge origin/master
@mdc-web-bot
Copy link
Collaborator

All 627 screenshot tests passed for commit 8809c3e vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 627 screenshot tests passed for commit 14ee630 vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 627 screenshot tests passed for commit 4f096dd vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 627 screenshot tests passed for commit 65d16c9 vs. master! 💯🎉

@bwobrien bwobrien merged commit 31376f7 into master Mar 20, 2019
@bwobrien bwobrien deleted the feat/tab-mixins branch March 20, 2019 17:05
adrianschmidt pushed a commit to Lundalogik/material-components-web that referenced this pull request Mar 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants