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): adds the md-tab-group component #376

Merged
merged 1 commit into from
May 17, 2016
Merged

feat(tabs): adds the md-tab-group component #376

merged 1 commit into from
May 17, 2016

Conversation

robertmesserle
Copy link
Contributor

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 28, 2016
import {By} from 'angular2/platform/browser';

export function main() {
ddescribe('MdTabGroup', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like you forgot a ddescribe here :)

@robertmesserle
Copy link
Contributor Author

@kara Addressed your comments.

@jelbourn This might actually be okay to merge this week - I got it working with focus state and modified the arrow functionality so that it cycles focus target. Enter will actually select the tab.

(keydown.arrowLeft)="focusPreviousTab()"
(keydown.enter)="selectedIndex = focusIndex">
<div class="md-tab-label" role="tab" md-tab-label-wrapper
*ngFor="#label of labels; #i = index"
Copy link
Contributor

Choose a reason for hiding this comment

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

let

@jelbourn
Copy link
Member

jelbourn commented May 4, 2016

@robertmesserle Now needs rebasing on my mega change #384

<div class="md-tab-body"
*ngFor="let content of contents; let i = index"
[class.md-active]="selectedIndex == i"
[attr.id]="getTabContentId(i)"
Copy link
Member

Choose a reason for hiding this comment

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

Just id should work.

}

/**
* Tracks which element has focus; used for keyboard navigation
Copy link
Member

Choose a reason for hiding this comment

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

/** Gets the index of the tab that currently has focus. */

?

@jelbourn
Copy link
Member

Looks good aside from that one last comment and a needed rebase.

@jelbourn
Copy link
Member

LGTM

@robertmesserle robertmesserle merged commit ada285c into angular:master May 17, 2016
@robertmesserle robertmesserle mentioned this pull request May 17, 2016
2 tasks
andrewseguin pushed a commit to andrewseguin/components that referenced this pull request Oct 15, 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 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants