paper-scroll-header-panel icon indicating copy to clipboard operation
paper-scroll-header-panel copied to clipboard

Standard button element not clickable in paper-header

Open torsjonas opened this issue 8 years ago • 1 comments

A button element is not clickable when placed directly inside an element having the paper-header class. However, wrapping the button in paper-material makes it clickable. Don't know if this behavior is a bug or a feature, but it was not what I was expecting.

Some partial code to clarify what I mean:

With the following html the button is not clickable:

 <paper-scroll-header-panel class="fit">
   <div class="paper-header">
     <button onclick="foo()">Foo</button>

With the following html the button is clickable:

 <paper-scroll-header-panel class="fit">
   <div class="paper-header">
     <paper-material>
       <button onclick="bar()">Bar</button>
     </paper-material>

torsjonas avatar Mar 20 '16 12:03 torsjonas

The docs is missing that the class should have position: relative | absolute http://jsbin.com/sijedo/edit?html,output

blasten avatar Mar 21 '16 18:03 blasten