Skip to content

Conversation

@devversion
Copy link
Member

@devversion devversion commented Jun 20, 2017

  • Adds support for disabling tab links inside of the tab-nav-bar
  • No longer requires having an extra directive for the ripples of tab links (no exposing of attributes like mdRippleColor - which could be flexible but should not be public API here)

Note:

I was not able to create a test that confirms that no ripples are showing up if tab links are disabled. This is because the ripples are disabled through the pointer-events CSS property here.

In theory it would be better to use mdRippleDisabled here but this would prevent us from using the disabled mixin and we would still need to use a separate class.

cc. @jelbourn, @andrewseguin for thoughts.

Closes #5208

* Adds support for disabling tab links inside of the tab-nav-bar
* No longer requires having an extra directive for the ripples of tab links (no exposion of attributes like `mdRippleColor` - which could be flexible but should not be public API here)

Closes angular#5208
@devversion devversion added the in progress This issue is currently in progress label Jun 20, 2017
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 20, 2017
inputs: ['disabled'],
host: {
'class': 'mat-tab-link',
'[class.mat-tab-disabled]': 'disabled'
Copy link
Member

Choose a reason for hiding this comment

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

Also needs aria-disabled and setting tabIndex to -1 (same as MdAnchor) with corresponding tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

Addressed this.

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed in progress This issue is currently in progress labels Jun 21, 2017
@jelbourn jelbourn merged commit fc809ed into angular:master Jun 23, 2017
@devversion devversion deleted the feat/disable-tab-nav-bar branch November 11, 2017 10:23
@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 7, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please add disabled input to md-tab-link

4 participants