googlearchive / paper-tabs

A tabs à la Material Design
22 stars 21 forks source link

Consider supporting anchor tags #32

Closed robdodson closed 9 years ago

robdodson commented 9 years ago

It would be nice if I could do something like this:

<paper-tabs>
  <paper-tab>
    <a href="foo.com">Foo</a>
  </paper-tab>
  <paper-tab>
    <a href="bar.com">Bar</a>
  </paper-tab>
</paper-tabs>

Where the anchor would cover the entire clickable surface of the tab.

ebidel commented 9 years ago

Related:

robdodson commented 9 years ago

@frankiefu what do I need to see this in action? also, is the entire tab clickable as a link or just the anchor area inside of it?

frankiefu commented 9 years ago

Entire tab is clickable as a link... demo: https://github.com/Polymer/paper-tabs/blob/master/demo.html#L163

robdodson commented 9 years ago

Ah, I didn't notice the anchors were hash changes :) Looks good to me! Thanks!

On Tue, Oct 14, 2014 at 5:19 PM, Frankie Fu notifications@github.com wrote:

Entire tab is clickable as a link... demo: https://github.com/Polymer/paper-tabs/blob/master/demo.html#L163

— Reply to this email directly or view it on GitHub https://github.com/Polymer/paper-tabs/issues/32#issuecomment-59139450.