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
The progress bar direction should match the direction of the text for the language specified in the user-agent.
So, for "en-us", the language is English, for which the direction of the text is left-to-right (LTR). So then, the direction of the linear progress at the bottom of the countdown notification should also be LTR.
It's counting down, so it's going from 100% to 0%. The progress bar is LTR, which you can see when it counts back up after putting your cursor over it.
I think the confusion here may be that the progress bar's color is the same as the background color of the notice, and its background color is the same as the border color of the notice.
I can make an option to swap the colors.
hperrin
changed the title
countdown linear-progress direction should match users's language text direction
Countdown module's colors make the direction of the countdown difficult to determine.
Apr 24, 2020
The progress bar direction should match the direction of the text for the language specified in the user-agent.
So, for "en-us", the language is English, for which the direction of the text is left-to-right (LTR). So then, the direction of the linear progress at the bottom of the countdown notification should also be LTR.
https://stackoverflow.com/questions/673905/best-way-to-determine-users-locale-within-browser
https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/language
The text was updated successfully, but these errors were encountered: