You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That code is surely wrong. It should just return value + "/" + max regardless of isLeftToRight(). The reason is that HTML has to be semantically correct (i.e. if you look at the raw HTML code it needs to make sense), so the raw HTML code needs to say 1/5 not 5/1.
If the fraction is displayed incorrectly in RTL mode, then you should use CSS etc. to make it print correctly. dir=ltr hardcoded on that node, or style="direction: left", or even unicode directional characters.
Also, remember that it's not just about display. There's also likely a screen reader issue. But even if there isn't, the HTML needs to be semantically correct.
ProgressBar currently has this code:
That code is surely wrong. It should just return
value + "/" + max
regardless of isLeftToRight(). The reason is that HTML has to be semantically correct (i.e. if you look at the raw HTML code it needs to make sense), so the raw HTML code needs to say 1/5 not 5/1.If the fraction is displayed incorrectly in RTL mode, then you should use CSS etc. to make it print correctly. dir=ltr hardcoded on that node, or style="direction: left", or even unicode directional characters.
Also, remember that it's not just about display. There's also likely a screen reader issue. But even if there isn't, the HTML needs to be semantically correct.
@semion1956?
The text was updated successfully, but these errors were encountered: