https://bugzilla.wikimedia.org/show_bug.cgi?id=71424

--- Comment #4 from Matthew Flaschen <[email protected]> ---
(In reply to Jared Zimmerman (WMF) from comment #3)
> Sounds like you want to work in this Matt ;)

Okay, given that the actual expand/collapse is in CSS (with :hover), my idea is
to either:

1. Use :focus as well (doesn't seem to be working, I think because it's
focusing on the <a> element, not the <li>, but may be correctable with
tabindex).

2. Use a class to mark when it's opened.

Then the question is which events to use to either focus it or add that class
(and then remove).  I'm thinking:

On the element:

touchend - Open (but maybe also close if they touch again when it's already
open)
touchleave - Close

Outside the element:

touchend - Close

I haven't done anything with touch events before, so this will take a little
iteration.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to