-
Notifications
You must be signed in to change notification settings - Fork 23
Polymer elements should compose organically and ergonomically with anchors #37
Comments
Nice! More refs: And anchor example in |
Thanks @abdonrd , I've added those to the main issue. |
One more PolymerElements/paper-checkbox#100 |
Another reference with paper-tabs: https://github.com/PolymerElements/paper-tabs/blob/master/demo/index.html#L171-L193 |
Another reference with paper-item: PolymerElements/paper-item#75 |
@cdata all of the issues looked fixed. Should we close? |
@ebidel we still have the issue when we want to wait the And the |
I'm working on a fix for paper-tabs |
@robdodson nice! The anchor will be outside the <paper-tabs>
<a href="#inbox" tabindex="-1">
<paper-tab>Inbox</paper-tab>
</a>
<a href="#starred" tabindex="-1">
<paper-tab>Starred</paper-tab>
</a>
</paper-tabs> |
No I was planning to leave it inside the tab. Basically doing the fix proposed here: PolymerElements/paper-tabs#141 |
btw that paper-item fix seems wrong. If the anchor is tabindex=-1 you'll never be able to activate it from a keyboard. It'll only work for mouse users |
hm actually it does seem to work. I guess the anchor picks up the event dispatched from the inner child and it gets counted as an anchor click |
It's a bit inconsistent have elements that have the anchor inside and others outside. It would be great if we can unify. |
@abdonrd I agree. We would have to change the way paper-tabs does distribution to make the other proposal work which would be a pretty big change. |
@cdata @robdodson @ebidel Sorry for reliving this post after so long, but... Today a friend has shared this post with me: And I remember these PRs where we wrapped the elements with the
It seems that according to the HTML5 Spec Document from W3C about the
As the interactive content includes the Thanks in advance! |
I think it's probably fine to have element descendants inside of If you're just using native HTML, then it doesn't make sense to put It might be worth overriding the
That would tell the accessibility tree to treat |
This is a meta-issue to track all of the design problems with Polymer Elements as they related to HTML
<a>
tags.Issues
Related PRs
The text was updated successfully, but these errors were encountered: