-
Notifications
You must be signed in to change notification settings - Fork 297
RTL: use backslash to write fractions (grades) #979
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
RTL: use backslash to write fractions (grades) #979
Conversation
|
Thanks for the pull request, @ARMBouhali! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
|
@ARMBouhali Thank you, we will review once the agreement is sorted out. |
|
@ARMBouhali Great, your CLA check is green, our team can review now. |
df9e164 to
efbfd54
Compare
|
I updated the commit message to comply with commitlint rules |
Codecov ReportBase: 84.13% // Head: 84.18% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #979 +/- ##
==========================================
+ Coverage 84.13% 84.18% +0.05%
==========================================
Files 264 264
Lines 4519 4521 +2
Branches 1158 1159 +1
==========================================
+ Hits 3802 3806 +4
+ Misses 697 695 -2
Partials 20 20
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
brian-smith-tcril
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
part of me wishes we had a localizedSlash or something to use instead of needing to copy/paste {isLocaleRtl ? '\\' : '/'} into multiple places, but that feels like premature optimization.
LGTM!
|
@mattcarter - Hi Mat! Could you please allow actions / tests to run on this item? |
b0ad3e9 to
fc7d0ec
Compare
|
I've rebased the branch for Codecov test to pass.
Concise ways to deal with this:
|
fc7d0ec to
8a6742d
Compare
8a6742d to
d0cb0c6
Compare
Thanks! Looks like this should be ready for merge, then :) @brian-smith-tcril Since you had already reviewed and okayed these changes a couple weeks ago, would you mind re-approving them? It looks like that's the only thing left to do before this PR can be merged. |
brian-smith-tcril
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still looking good!
![]()
arbrandes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
|
@ARMBouhali 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
TL;DR - This commit replaces the slash
/for RTL languages with a backslash\when it is used to write fractions for such as2/5(grades)Background
( )and comparison signs< >/is not mirrored in RTL, which introduces visual confusion when used to write fractions. For Example, 2 / 3 in English still shows as 2 / 3 in Arabic, while it should look 3 \ 2What changed?
isRtlandgetLocaleto apply the fix only if the current user language is right-to-left./with\for RTL languages in places where absolute grades are shown.Screenshots (look at the grades)
The screenshots show the detailed grades table in the Arabic language for the DemoX course.