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(list): option to disable ripples for all items #4159

Merged
merged 2 commits into from
Apr 21, 2017

Conversation

devversion
Copy link
Member

  • Allows developers to apply the [disableRipple] binding onto the
    md-nav-list element.
  • Removes the Provider/token stuff, since we can do more elegant by just
    injecting the NavList styler.
  • Also fixes that the boolean is not coerced for the disableRipple binding.

Fixes #4149.

@devversion devversion requested a review from kara April 19, 2017 15:47
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 19, 2017
private _disableRipple: boolean = false;
private _isNavList: boolean = false;

// Variable needs to be public for AOT compilation.
Copy link
Member

Choose a reason for hiding this comment

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

We can omit this comment; at this point it's library-wide and we have a CI check for it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep makes sense.

private _lineSetter: MdLineSetter;
/**
* Whether the ripple effect on click should be disabled. This applies only to list items that are
* part of a nav list. The value of `disableRipple` on the `md-nav-list` overwrites this flag.
Copy link
Member

Choose a reason for hiding this comment

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

overwrite -> override (since the parent doesn't write a different value, it just takes precedence)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@jelbourn jelbourn assigned jelbourn and unassigned kara Apr 20, 2017
* Allows developers to apply the `[disableRipple]` binding onto the
`md-nav-list` element.

* Removes the Provider/token stuff, since we can do more elegant by just
injecting the NavList styler.

Fixes angular#4149.
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 pr: needs review labels Apr 20, 2017
@kara kara removed their request for review April 20, 2017 23:48
@kara kara merged commit 7f0f473 into angular:master Apr 21, 2017
@devversion devversion deleted the feat/list-ripple-disable branch April 21, 2017 16:34
@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 6, 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.

md-nav-list disableRipple
4 participants