-
Notifications
You must be signed in to change notification settings - Fork 192
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
Allowing interactive elements within an <option> #74
Comments
I think the above is in alignment with what we would expect from the control and the flexibility we would need. I feel that the design intent here is visual so providing a way to support that visual styling would solve the issues.
Wholeheartedly agree with this. From a functional standpoint, I think it's a huge can of worms likely from a platform perspective, but also from an AT perspective to include interactive elements within an Either way, I'm in agreement for sure and I think the proposed solution for enabling the ability to include visuals such as a "checkbox" icon. |
Agreed with not supporting interactive elements inside of the select option. ARIA addresses this directly: https://www.w3.org/TR/wai-aria-practices-1.1/#Listbox
|
Based on the current ARIA standards and the expectations that a user has for an option we resolved on this in today's telecon to keep the current verbiage and NOT allow interactive elements within an option. Minutes are here: https://www.w3.org/2020/04/24-openui-minutes.html |
As we continue to dig into the
<select>
one aspect that is abundtly clear when I review the many different ways in which a<select>
is used is the need for arbitrary content within an<option>
. While this sounds easy on the surface it raises a bunch of interesting questions, one primary one being whether we should allow interactive content within an option or not. I have currently stated in the spec that a select will not allow any additional interactive elements (and then list them out).When I look at the usecases where interactive elements are common in a control that is
<select>
like, checkboxes and radio inputs are the most common. For example here is Fluent:and here is Safari's built in
<select>
:Both of these behave in the same manner. The only aspect that is actually "selectable" is the option itself. And if the
<option>
can take in an SVG there is nothing stopping fluent, or anyone for that matter, to insert a checkbox icon and change it on checked state of the option as this now becomes possible.While I do like the idea of authors being able to just insert a checkbox input there are far too many implementation and spec edge cases to contend with. Does anyone disagree with this position?
The text was updated successfully, but these errors were encountered: