-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Conversation
src/lib/list/list.ts
Outdated
private _disableRipple: boolean = false; | ||
private _isNavList: boolean = false; | ||
|
||
// Variable needs to be public for AOT compilation. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep makes sense.
src/lib/list/list.ts
Outdated
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. |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
* 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.
a6b3caa
to
f5bfa10
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
[disableRipple]
binding onto themd-nav-list
element.injecting the NavList styler.
disableRipple
binding.Fixes #4149.