I'm using Polymer to make a website. I'm currently having some issues with paper-ripple. Now the issue I'm having is that the ripple doesn't appear when clicking the h2
or h3
, even when removing the <div class='description'>
-tag and it's closing tab. Looking at the size of the paper-ripple
, it covers the whole <div class='album-header'>
, so that shouldn't be the issue.
Also, clicking under the <div class='description'>
, in the padded area, also makes the ripple occur.
<div class="album-header" vertical layout on-tap="{{albumTapped}}">
<paper-ripple class="recenteringTouch" fit></paper-ripple>
<content select="img"></content>
<div class="description">
<content select="h2"></content>
<content select="h3"></content>
</div>
</div>
Edit:
I've done some further testing and I have narrowed the issue down. Take a look at this example. Applying styles to the children elements doesn't give any issues, unless you also assign an opacity. In the example given in the link the green text has been given an opacity. Clicking this text does not generate the ripple for me (running in Chrome 36). (The assignment of the color green has nothing to do with it, just to make it easier to spot). Clicking anywhere around that <h3>
tag does make the ripple occur.
position: relative
on the parent is a requirement forfit
, not forpaper-ripple
itself. – Bride