Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

feat(navBar): add disabled attribute #10202

Closed
wants to merge 1 commit into from
Closed

feat(navBar): add disabled attribute #10202

wants to merge 1 commit into from

Conversation

maxjoehnk
Copy link
Contributor

  • Add disabled attribute to navitem
  • Update demo to showcase ng-disabled and disabled usage
  • Add tests
  • Ignore navbar specific button styling when disabled

fixes #9667

@googlebot googlebot added the cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ label Jan 3, 2017
@@ -28,5 +32,8 @@

<md-checkbox ng-model="disableInkBar">Disable Ink Bar</md-checkbox>

<md-checkbox ng-model="secondTabDisabled" aria-label="Disable item two?" style="margin: 5px;">
Disable Second Tab?
Copy link
Member

Choose a reason for hiding this comment

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

I think it would look better to remove the ? here (also in the aria-label)

@@ -442,6 +444,7 @@ function MdNavItem($$rAF) {
'mdNavSref': '@?',
'srefOpts': '=?',
'name': '@',
'disabled': '@?'
Copy link
Member

Choose a reason for hiding this comment

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

Why is this necessary, if we already use the attrs.$observe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, you're right. It isn't necessary.

Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

LGTM

@ThomasBurleson ThomasBurleson added this to the 1.2.0 milestone Jan 3, 2017
@kara kara added pr: merge ready This PR is ready for a caretaker to review needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved and removed needs: presubmit pr: merge ready This PR is ready for a caretaker to review labels Jan 3, 2017
@kara
Copy link
Contributor

kara commented Jan 3, 2017

@maxjoehnk Can you rebase?

@maxjoehnk
Copy link
Contributor Author

@kara Done

@devversion devversion added needs: presubmit and removed needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved labels Jan 11, 2017
* Add disabled attribute to navitem
* Update demo to showcase ng-disabled and disabled usage
* Add tests
* Ignore navbar specific button styling when disabled

fixes #9667
@mmalerba mmalerba added needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved and removed needs: presubmit labels Feb 22, 2017
@ThomasBurleson
Copy link
Contributor

@maxjoehnk - something bad happened with your rebase. We now have 40 files to merge. That will not be allowed. Please resubmit a new PR based on the lastest from https://github.com/angular/material master branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

md-nav-item ignores disabled-attribute
7 participants