Skip to content

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

Merged
andrewseguin merged 1 commit intoangular:masterfrom
crisbeto:8871/tab-nav-bar-stretched-tabs
Mar 19, 2018
Merged

feat(tabs): support stretched tabs in mat-tab-nav-bar#10368
andrewseguin merged 1 commit intoangular:masterfrom
crisbeto:8871/tab-nav-bar-stretched-tabs

Conversation

@crisbeto
Copy link
Copy Markdown
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
position: relative;
overflow: hidden; // Keeps the ripple from extending outside the element bounds

[mat-stretch-tabs] & {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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