1.4.10 Reflow: Can selects with long options be considered to fall under the exception #3847
Replies: 10 comments
-
Hi Detlev, I'm not clear on the scenario, are the selects causing scrolling at 320px or is the text getting cut off, or something else? I don't see a select element as something which needs to be 2D, there's no relationship, it's just a list of text items. |
Beta Was this translation helpful? Give feedback.
-
does this directly fail reflow? the |
Beta Was this translation helpful? Give feedback.
-
I think my argument would be that a native It would be better if we had a user agent exception in here, but barring that, I am comfortable allowing these. |
Beta Was this translation helpful? Give feedback.
-
Agreed with @mbgower. Even putting a max-width on a
agreed. this would be unreasonable. |
Beta Was this translation helpful? Give feedback.
-
Currently it can fail in two ways, either:
In most contexts where you cut-off text there is a way of getting the full content. E.g. a news headline is cut-off in the list, but click through for the whole headline. AFAICT for selects that isn't an option, so that would lean me towards the 2D exception. Just playing devil's advocate for a moment, is it essential to use a select? I don't see them around much these days, are there better ways of doing the same thing? |
Beta Was this translation helpful? Give feedback.
-
Lucky you, I still swim in them on many of the intranet-type sites I regularly audit...
when there's only a few options, a set of radio buttons offers more flexibility. but of course, that takes up far more space than a |
Beta Was this translation helpful? Give feedback.
-
Yea, combo-boxes seems to be the common (and difficult to get right) method these days. @patrickhlauke so have you been failing these examples, and if so what did you recommend instead? I agree with the sentiment above of not wanting to fail these, but I'm thinking about the lack of normative support for that. |
Beta Was this translation helpful? Give feedback.
-
Luckily I haven't encountered ones all too often where the option value was so excessively long as to be problematic at 320 CSS px width. But on the few occasions where I have, I flagged it as a mild failure, and suggested - depending on what the exact situation was - to either see if the option text can realistically be shortened and still make sense, or to consider an alternative instead (series of radio buttons, or a completely custom combobox implementation, pointing them to ARIA-PRACTICES examples). But yes, felt a bit "wrong" as it's something not directly under their control. |
Beta Was this translation helpful? Give feedback.
-
This issue is labelled as a discussion, so we’re moving this to Discussions. There doesn’t seem to be an update to make to the documentation, but if that changes, we can move it back to the issues list. |
Beta Was this translation helpful? Give feedback.
-
In an audit of legacy content, there are "open" (multiline)
select
elements with longish content in theoption
elements (say, trip number, traveller, place, date).This should REALLY be data tables, but implementing it that way is currently not feasible and the question remains whether such an implementation could still be considered a PASS of 1.4.10 if the content in the options can be scrolled to in a magnified view (or narrow view of 320 px). As I see it, there is no normative definition what content falls under the exception, just a range of examples in the second Note. Any opinions? I'd be very obliged...
Beta Was this translation helpful? Give feedback.
All reactions