-
Notifications
You must be signed in to change notification settings - Fork 24
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
Should progress bars in HTML progress and meter elements be read RTL? #259
Comments
This has been coming up often in bidi UX conversations and I don't have a good enough answer to it. On the one hand, it seems intuitive that the RTL progression of the text would be expanded to cover the directional behavior of progress bar and similar elements, but on the other hand, my experience shows that this could easily become problematic for some UI elements with significant roles on any specific UI canvas; e.g. considering video player time progress bar, is it also expected that its direction is RTL in an RTL UI context? How about the playback control icons ( Since I'm unaware of any UX cognitive studies showing otherwise, I usually stick with the recommendation of Persian Graphical User Interface Specifications and Guidelines, chapter 2, section 3:
My best attempt recommendation would be based on the whether a UI element is text related or not; the examples above (tickets sold progress bar) makes sense to follow the direction of the paragraph, but for a progress bar in a non-textual context (say, a |
Thanks, Shervin. I wanted to keep the scope of this question to the progress and meter elements because i'm aware that things are not so clear wrt playback controls. So, in summary, you're saying that the current browser behaviour for those specific elements is probably correct. I'm also inclined to agree with that, because the UI is basically mirrored. For example, these controls are often accompanied by a bit of text that (through javascript) gives the actual numbers involved, which would also appear on the opposite side from the English UI for Arabic text (unless the content author/translator went to some additional trouble to override the direction). Even though the Persian Guidelines doc mentions progress bars, i suspect that when they are embedded in a line of text, they should follow the reading direction. Anyone else has an opinion? |
Extended the query to cover the |
There are plans for a new 'switch' control in HTML, which would, for example, allow you to show something as on or off by sliding a highlight from one side to another. Again, we have the question about whether 'on' should be on different sides in LTR and RTL contexts. |
I put out a question at https://w3c.social/@webi18n/111585791552312739: I received 2 responses:
and
|
As an Arabic speaker, I add my vote to keep the direction of these elements and not flip them. RTL is a writing direction not a UI direction that just flips everything in it like a mirror. Yes, some of the UI should be flipped because of how text is rendered, but that shouldn't extend to all possible elements.
|
Background
This question was prompted by the HTML issue at whatwg/html#8413
Currently, for RTL script text Blink, WebKit and Gecko engines all reverse the direction of the progress bar when
progress
,meter
orinput=range
elements are used in HTML.This means that the direction of the controls is the same as the reading direction of the text. For example:
Test for meter
Test for progress
Test for range input control
Question
Is it preferable for the direction of the control to follow the direction of the surrounding text, or should it always progress from left to right?
The text was updated successfully, but these errors were encountered: