Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tabs): support stretched tabs in mat-tab-nav-bar #10368

Merged

Conversation

crisbeto
Copy link
Member

Adds support for stretched tabs in the tab nav bar. Also removes a duplicate selector.

Fixes #8871.

Adds support for stretched tabs in the tab nav bar. Also removes a duplicate selector.

Fixes angular#8871.
@crisbeto crisbeto requested a review from andrewseguin as a code owner March 12, 2018 00:45
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 12, 2018
@@ -17,8 +18,14 @@
text-decoration: none; // Removes anchor underline styling
position: relative;
overflow: hidden; // Keeps the ripple from extending outside the element bounds

[mat-stretch-tabs] & {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be the same css targeting as for regular tabs?

Regular tabs are:
.mat-tab-group[mat-stretch-tabs] .mat-tab-label

Tab nav is:
.mat-tab-link[mat-stretch-tabs]

Should it be?
mat-tab-links .mat-tab-link[mat-stretch-tabs]

Copy link
Member Author

Choose a reason for hiding this comment

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

This selector will end up being transpiled to [mat-stretch-tabs] .mat-tab-link. The only difference is that I didn't prepend the .mat-tab-links, but I wanted to make the selector less specific.

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, apparently I was not fully awake when I read this selector. I see it now. Awesome.

@josephperrott josephperrott added pr: lgtm action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release and removed pr: needs review labels Mar 12, 2018
@andrewseguin andrewseguin merged commit 89ea485 into angular:master Mar 19, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NavBar] Support stretched tabs
4 participants