PolymerElements / paper-tabs

Material Design tabs
https://www.webcomponents.org/element/PolymerElements/paper-tabs
65 stars 52 forks source link

paper-tab link not working when anchor inside a custom-element #218

Open avizcaino opened 6 years ago

avizcaino commented 6 years ago

Description

I have the following structure in my paper-tabs:

<paper-tabs>
   <paper-tab link>
      <custom-element>
         <a href="#/link" tabindex="-1">
      </custom-element>
   </paper-tab>
<paper-tabs>

But the link is only in the anchor, and does not fill all the tab. This works if the anchor is directly a child of paper-tab. Is there any solution to this?

Expected outcome

Link fills all paper-tab.

Actual outcome

Link is only in anchor element.

Live Demo

Steps to reproduce

  1. Put a custom-element with an anchor inside a paper-tab.
  2. Click the paper-tab element.
  3. Click the anchor element.

Browsers Affected