Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Ripple not working on List item #2277

Open
touficbatache opened this issue Aug 15, 2020 · 0 comments · May be fixed by #2279
Open

Ripple not working on List item #2277

touficbatache opened this issue Aug 15, 2020 · 0 comments · May be fixed by #2279

Comments

@touficbatache
Copy link

Describe the bug
The ripple is not showing when clicking on a list item.

To Reproduce
Steps to reproduce the behavior:

  1. Add a list to your project, the following is a very brief and simple example:
<mdc-list>
  <mdc-list-item>
    List item
  </mdc-list-item>
</mdc-list>
  1. Click on the list item
  2. Observe how the ripple doesn't fire

Expected behavior
A material ripple should fire on the list item.

Screenshots
No screenshots.

What Angular MDC version are you using?
v6.0.0-canary.9

What OS are you using?:
MacOS, but this issue affects every OS.

What browser(s) is this bug affecting?:
All browsers.

Solution
The <mdc-list-item> should automatically add <span class="mdc-list-item__ripple"></span> as a child. The code would look like so:

<mdc-list>
  <mdc-list-item>
    <span class="mdc-list-item__ripple"></span>
    List item
  </mdc-list-item>
</mdc-list>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant