-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTMLSelectElement showPicker() #900
Comments
Seems like just a mis-pasted URL. Try https://chromestatus.com/feature/5111537299881984 |
Apologies have corrected that. Will also file standards positions now |
Just to keep Tag in the loop I've filed an intent to ship. https://groups.google.com/a/chromium.org/g/blink-dev/c/qew_ILTXWSY/m/AxHrcWzuAQAJ Obviously if any major concerns arise I'll address where possible before shipping. |
So if I understand the proposal correctly, calling showPicker() would show the picker (which presumably would change the accessibility tree, since the picker is expanded now) but not necessarily move the focus. Has this been tested with a screen reader for usability? Concern is that from a content author perspective the expansion of the picker would imply that the user is able to enumerate the choices (visually), but that assumption may not hold when the user depends on AT. |
I have tested on macOS with Voice Over and it seems to behave as I would expect. You can focus the button when you press enter it moves focus to the first item in the select picker selecting an option returns focus to the button you're on. (or Ctrl + Option + Space moves focus to the menu arrow keys correctly navigate and it otherwise works like enter) I don't have access to other desktop platforms to test but https://select-show-picker.glitch.me/ can be used in Chrome Canary (experimental flag on) to test it. As for the correct aria markup for the button I am not sure but the same issue would arise with the existing |
Not necessarily, the Not sure if focusing the control first would preclude this from satisfying any of its use cases, but since Actually, it would be good to have a list of use cases for both. The explainer for this does not list any use cases, and neither did the TAG review for |
Based on whatwg/html#9757 the spec may explicitly allow focusing the target element where required but the default would be to not focus the input (or select). I don't think the select method would add any new confusion beyond that which might exist for the input method. |
whatwg/html#7957 includes an example use case for this function. |
Hi @lukewarlow. Thank you for your patience. We feel that consistency is the top priority here: if We note there's ongoing discussion in whatwg/html#9757 as to if the control, or picker, should be focused by default, which perhaps indicates that the behavior of It's important to have a clear idea of the expected use cases. Are there any use cases that require the control/picker to not be focused? How easy the default behavior is to escape is also a factor. If the picker is focused by default, can authors get the alternate behavior by running We suggest that you talk with the Accessible Platform Architectures (APA) WG to arrive at some guidance for authors that could be incorporated into the spec as a note. Looking forward to your response, especially around use cases. |
Hi @lukewarlow. Thanks again for your review request. We discussed this feature again recently. It doesn't look like there have been any recent updates, and we still have the concerns outlined above. We resolved to close this review as 'satisfied with concerns' to reflect this - please ping us if there are any updates. Thanks! |
こんにちは TAG-さん!
I'm requesting a TAG review of the
showPicker()
method forHTMLSelectElement
.The
showPicker()
element is a new addition toHTMLSelectElement
which addresses a common request from web developers: programmatically showing the options picker for select controls.<select>
(HTMLSelectElement
) whatwg/html#7957 original request for something like this. The spec largely follows that of theshowPicker
on HTMLInputElement so most discussion occured for that.showPicker()
mozilla/standards-positions#886showPicker()
WebKit/standards-positions#258Further details:
You should also know that...
#688 is the relevant review request for the input element. It was closed as unsatisfied because there's no way to detect if the method does anything. While the spec doesn't mandate this do anything for all implementations have a picker and therefore it will so hopefully that problem doesn't matter for this request. We'd prefer the TAG provide feedback as (please delete all but the desired option): 💬 leave review feedback as a comment in this issue and @-notify @lukewarlow
The text was updated successfully, but these errors were encountered: