Material: How to disable ripple (ink) on a parent element without disabling ripple on its children elements?

Created on 8 Mar 2015  路  6Comments  路  Source: angular/material

Hi folks,

I use md-no-ink to disable ripple on a parent element and add md-ink-ripple on its children element, but they both lose ripple effects. Is there a method I can only disable the parent element's ripple effect?

can't reproduce ink

Most helpful comment

+1

<md-list md-no-ink>
        <md-list-item md-ink-ripple ng-repeat="item in items">
          <p> {{item}} </p>
        </md-list-item>
</md-list>

results in no ink ripple

All 6 comments

Can you provide a plunker with your problem?

+1

Having the same issue, when setting md-ink-ripple on md-list-item, the parent element md-list adopts the same ripple setting.

Can you please check if it's happening on HEAD?
Couldn't reproduce

Closing for now, if it's still happening please ping and i'll reopen this issue.

+1

<md-list md-no-ink>
        <md-list-item md-ink-ripple ng-repeat="item in items">
          <p> {{item}} </p>
        </md-list-item>
</md-list>

results in no ink ripple

+1

Besides, I have found no way to add a md-menu to a md-list-item without all the list-item becoming clickable (and with added ripple).

In the directive documentation it's stated that "The md-list-item component automatically detects if the list item should be clickable.". This is nice, but it would be great if it could be controlled manually. I want the md-menu to deploy when the user clicks on the menu icon on the right, not all the list-item:

image

Besides, in the md-list demo page, there's one in the last section that seems to achieve this behaviour (clicking the button to the right will fire the secondary action) showing that it's possible to do with a button, but unfortunately it doesn't seem to work with anything else.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ddimitrop picture ddimitrop  路  3Comments

ghost picture ghost  路  3Comments

bobber205 picture bobber205  路  3Comments

epelc picture epelc  路  3Comments

nikhildev picture nikhildev  路  3Comments