Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Select with custom menu not keyboard accessible in 1.1 rc1 #3658

Closed
toddparker opened this issue Feb 28, 2012 · 14 comments
Closed

Select with custom menu not keyboard accessible in 1.1 rc1 #3658

toddparker opened this issue Feb 28, 2012 · 14 comments
Assignees
Milestone

Comments

@toddparker
Copy link
Contributor

Both the native and custom menu selects will open when focused and the spacebar is pressed. However, the custom menu version doesn't seem to ever gain in focus when opened - no options have hte ui-focus class and no keystrokes seem to affect it.
http://jquerymobile.com/test/docs/forms/forms-all.html

This should have the same keyboard shortcuts as the native menu - arrow up/down changes the selected option, spacebar or Enter selects the option and closes the select.

This is an issue in 1.0.1 so it's not a recent regression.

@ghost ghost assigned scottjehl Feb 28, 2012
scottjehl pushed a commit that referenced this issue Feb 28, 2012
…select is opened. This addresses issue #3658, but doesn't fix it visually yet (only audibly and for keyboard)
@scottjehl
Copy link

This definitely works in the betas, so it's a regression. I think it came from moving things over to native dom methods (maybe a tabindex was misplaced somewhere?).

@scottjehl
Copy link

I think this is good. @Wilto - if you get a chance, I would love a second opinion on the roving tabs and such. I didn't get a chance to do a full ARIA overview, but the keyboard and roving focus appear to be good now, and things are certainly working from a visual keyboard access perspective. thanks!

@toddparker
Copy link
Contributor Author

So odd this isn't working for us after that commit. We'll have to try and get this in for 1.1 final.

@toddparker toddparker reopened this Feb 28, 2012
@toddparker
Copy link
Contributor Author

Sounds from the commit message that @scottjehl's fix makes this work on screenreaders but we still need the visual feedback to work for sighted users.

@scottjehl
Copy link

you're not getting visuals? In chrome? I am….

hmmm

On Feb 28, 2012, at 11:17 PM, Todd Parker wrote:

Sounds from the commit message that @scottjehl's fix makes this work on screenreaders but we still need the visual feedback to work for sighted users.


Reply to this email directly or view it on GitHub:
#3658 (comment)

@scottjehl
Copy link

Right now on http://jquerymobile.com/test/docs/forms/selects/custom.html

I can tab to the first select, press space to open it, and arrow up and down to change the hover/focus before hitting space to make a choice.

The hover is subtle, same as our hover state, so maybe it's light enough it's hard to see? Could that maybe be the problem?

On Feb 28, 2012, at 11:17 PM, Todd Parker wrote:

Sounds from the commit message that @scottjehl's fix makes this work on screenreaders but we still need the visual feedback to work for sighted users.


Reply to this email directly or view it on GitHub:
#3658 (comment)

@toddparker
Copy link
Contributor Author

Hmmm….I see that now. Maybe we can add the focus class to the selected option?
Broken on this page tho - see last select.

filament
filamentgroup.com | 102 south street #3 boston, ma 02111
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
todd.parker .: . todd@filamentgroup.com .: . (tel) 617.482.7120 (fax) 617.687.0212

On Feb 28, 2012, at 12:07 PM | February 28, 2012, Scott Jehl wrote:

Right now on http://jquerymobile.com/test/docs/forms/selects/custom.html

I can tab to the first select, press space to open it, and arrow up and down to change the hover/focus before hitting space to make a choice.

The hover is subtle, same as our hover state, so maybe it's light enough it's hard to see? Could that maybe be the problem?

On Feb 28, 2012, at 11:17 PM, Todd Parker wrote:

Sounds from the commit message that @scottjehl's fix makes this work on screenreaders but we still need the visual feedback to work for sighted users.


Reply to this email directly or view it on GitHub:
#3658 (comment)


Reply to this email directly or view it on GitHub:
#3658 (comment)

@scottjehl
Copy link

full page ones may need a little extra help, yes.

On Feb 29, 2012, at 12:40 AM, Todd Parker wrote:

Hmmm….I see that now. Maybe we can add the focus class to the selected option?
Broken on this page tho - see last select.

filament
filamentgroup.com | 102 south street #3 boston, ma 02111
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
todd.parker .: . todd@filamentgroup.com .: . (tel) 617.482.7120 (fax) 617.687.0212

On Feb 28, 2012, at 12:07 PM | February 28, 2012, Scott Jehl wrote:

Right now on http://jquerymobile.com/test/docs/forms/selects/custom.html

I can tab to the first select, press space to open it, and arrow up and down to change the hover/focus before hitting space to make a choice.

The hover is subtle, same as our hover state, so maybe it's light enough it's hard to see? Could that maybe be the problem?

On Feb 28, 2012, at 11:17 PM, Todd Parker wrote:

Sounds from the commit message that @scottjehl's fix makes this work on screenreaders but we still need the visual feedback to work for sighted users.


Reply to this email directly or view it on GitHub:
#3658 (comment)


Reply to this email directly or view it on GitHub:
#3658 (comment)


Reply to this email directly or view it on GitHub:
#3658 (comment)

@toddparker
Copy link
Contributor Author

No, that is a small custom menu example. Maybe bad syntax?

filament
filamentgroup.com | 102 south street #3 boston, ma 02111
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
todd.parker .: . todd@filamentgroup.com .: . (tel) 617.482.7120 (fax) 617.687.0212

On Feb 28, 2012, at 12:49 PM | February 28, 2012, Scott Jehl wrote:

full page ones may need a little extra help, yes.

On Feb 29, 2012, at 12:40 AM, Todd Parker wrote:

Hmmm….I see that now. Maybe we can add the focus class to the selected option?
Broken on this page tho - see last select.

filament
filamentgroup.com | 102 south street #3 boston, ma 02111
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
todd.parker .: . todd@filamentgroup.com .: . (tel) 617.482.7120 (fax) 617.687.0212

On Feb 28, 2012, at 12:07 PM | February 28, 2012, Scott Jehl wrote:

Right now on http://jquerymobile.com/test/docs/forms/selects/custom.html

I can tab to the first select, press space to open it, and arrow up and down to change the hover/focus before hitting space to make a choice.

The hover is subtle, same as our hover state, so maybe it's light enough it's hard to see? Could that maybe be the problem?

On Feb 28, 2012, at 11:17 PM, Todd Parker wrote:

Sounds from the commit message that @scottjehl's fix makes this work on screenreaders but we still need the visual feedback to work for sighted users.


Reply to this email directly or view it on GitHub:
#3658 (comment)


Reply to this email directly or view it on GitHub:
#3658 (comment)


Reply to this email directly or view it on GitHub:
#3658 (comment)


Reply to this email directly or view it on GitHub:
#3658 (comment)

@scottjehl
Copy link

oh sorry ok - well both do then :)

maybe syntax. I'll see tomorrow!

On Feb 29, 2012, at 12:52 AM, Todd Parker wrote:

No, that is a small custom menu example. Maybe bad syntax?

filament
filamentgroup.com | 102 south street #3 boston, ma 02111
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
todd.parker .: . todd@filamentgroup.com .: . (tel) 617.482.7120 (fax) 617.687.0212

On Feb 28, 2012, at 12:49 PM | February 28, 2012, Scott Jehl wrote:

full page ones may need a little extra help, yes.

On Feb 29, 2012, at 12:40 AM, Todd Parker wrote:

Hmmm….I see that now. Maybe we can add the focus class to the selected option?
Broken on this page tho - see last select.

filament
filamentgroup.com | 102 south street #3 boston, ma 02111
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
todd.parker .: . todd@filamentgroup.com .: . (tel) 617.482.7120 (fax) 617.687.0212

On Feb 28, 2012, at 12:07 PM | February 28, 2012, Scott Jehl wrote:

Right now on http://jquerymobile.com/test/docs/forms/selects/custom.html

I can tab to the first select, press space to open it, and arrow up and down to change the hover/focus before hitting space to make a choice.

The hover is subtle, same as our hover state, so maybe it's light enough it's hard to see? Could that maybe be the problem?

On Feb 28, 2012, at 11:17 PM, Todd Parker wrote:

Sounds from the commit message that @scottjehl's fix makes this work on screenreaders but we still need the visual feedback to work for sighted users.


Reply to this email directly or view it on GitHub:
#3658 (comment)


Reply to this email directly or view it on GitHub:
#3658 (comment)


Reply to this email directly or view it on GitHub:
#3658 (comment)


Reply to this email directly or view it on GitHub:
#3658 (comment)


Reply to this email directly or view it on GitHub:
#3658 (comment)

@scottjehl
Copy link

Todd are you talking about the blue select at the end of the page? (second to last one?)

That one works for me, but the hover state and active state are all themed pretty similar, so it's almost impossible to see the shift. Something else for you?

@toddparker
Copy link
Contributor Author

I think @Wilto fixed this and added the btn-down class to menu items to provide better visual feedback because hover is too subtle.

The only issue left was making keyboard nav work in the full screen dialog selects.

On Feb 29, 2012, at 4:32 AM, "Scott Jehl" reply@reply.github.com wrote:

Todd are you talking about the blue select at the end of the page? (second to last one?)

That one works for me, but the hover state and active state are all themed pretty similar, so it's almost impossible to see the shift. Something else for you?


Reply to this email directly or view it on GitHub:
#3658 (comment)

@scottjehl
Copy link

@Wilto's fix looks like it improved the keyboard nav itself when headers are involved.

It's using button-down now on focus? That seems unexpected to me… even if it might look better with our default theme. Shouldn't it just use hover/focus classes? Maybe our hover just needs more punch?

That aside, this latest change added ui-focus classes to focused buttons. Before, we were relying only on the :focus pseudo class on buttons themselves, but that doesn't bubble for focused child elements, so it didn't show up in listviews - list view markup is odd (links inside "buttons").

Anyway, I think the combined changes bring good coverage for custom selects.

Fullscreens are still an issue, yeah. I'll reopen

On Feb 29, 2012, at 7:20 PM, Todd Parker wrote:

I think @Wilto fixed this and added the btn-down class to menu items to provide better visual feedback because hover is too subtle.

The only issue left was making keyboard nav work in the full screen dialog selects.

On Feb 29, 2012, at 4:32 AM, "Scott Jehl" reply@reply.github.com wrote:

Todd are you talking about the blue select at the end of the page? (second to last one?)

That one works for me, but the hover state and active state are all themed pretty similar, so it's almost impossible to see the shift. Something else for you?


Reply to this email directly or view it on GitHub:
#3658 (comment)


Reply to this email directly or view it on GitHub:
#3658 (comment)

@scottjehl scottjehl reopened this Feb 29, 2012
@scottjehl
Copy link

Okay just closed this out, but I still question the ui-btn-down- class usage. @toddparker and @Wilto what do you think? With focus in place now, we've got additional "glow" from our ui-focus class. I think down should be reserved for actual down state, like a tap or spacebar click...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants