Closed alice closed 8 years ago
+1
Also important to re-emphasize Alice's point about the keyboard usability issue - at the moment keyboard users can't use paper-tabs at all :(
You can wrap each tab in a link and use a11y keys, but this is not ideal, and doesn't provide a good solution for when the number of tabs is dynamically generated.
Please keep it in mind for 0.8 if you can :+1:
+1
:+1: cc/ @marcysutton
Ping. Is this waiting on focus design in the MD spec?
Not sure if this should be assigned to @azakus or @frankiefu ... Any takers?
@cdata
I think that most of this has been resolved. Please re-open if not!
aria-selected
on selected tabObviously there is the question of associating with the relevant
tabpanel
element, discussed in #5 - I think this is usable without that (if not ideal).If a mechanism is later added to programmatically associate a
paper-tabs
element with acore-pages
element (beyond simply having them side by side on the page and sharing data binding), this might be the basic idea:core-pages
would be given atabpanel
role by thecore-pages
elementpaper-tab
would have itsaria-controls
set to the IDREF of the appropriatecore-pages
child (or use another mechanism for settingsaria-controls
if we have one by then)core-pages
children based on the ID of thecore-pages
element, which could be used as the mechanism for associatingpaper-tabs
withcore-pages
. (Obviously if the author has set the ID this shouldn't be clobbered - should be straightforward enough to check and use the ID of$(core-pages).childNodes[i]
Obviously all of this depends on
paper-tabs
andcore-pages
being in the same scope, but I'd imagine that was the vast majority of cases, if not 100% - let me know if I'm wrong about this. And of course all of the above may have other issues I don't have the in-depth understanding to see! As I said, I think this is usable, though not ideal, without any of this.