-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add autoMirroded attribute to some icons so that they render correctly on Rtl mode. #85
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #85 +/- ##
=======================================
Coverage 98.21% 98.21%
=======================================
Files 23 23
Lines 2573 2576 +3
Branches 38 39 +1
=======================================
+ Hits 2527 2530 +3
Misses 23 23
Partials 23 23 ☔ View full report in Codecov by Sentry. |
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.
I think it's fine and match what is expected by people using RTL mode. See this other icons: There are still some work to do on the design side, since I cannot autoMirroded this ones for instance: Also I am not sure if I can autoMirrored this ones with question mark: I think I should, but maybe @IbraChan can help (sorry to ping you directly, but since you open element-hq/element-x-android#3510 I think that you want to help!) |
I'd say it still looks weird to me, also the check icon is not in the list of automirrored material icons. In any case, it's not a blocker I think. |
The list of icons in your link is not exhaustive (there are extensions with more icons.). I have found https://developers.google.com/fonts/docs/material_icons#which_icons_should_be_mirrored_for_rtl which is interesting. So it seems that's you're right about the check icon. I will revert the auto-mirroring on the checks, and add it to the question mark, like: |
Quality Gate passedIssues Measures |
I believe that many icons, in fact, most of them, don’t need to be mirrored. Only those containing some kind of an arrow (left or right) should be mirrored. Additionally, mirroring some icons might make them look broken. For example, icons containing a check mark (as jmartinesp mentioned), and the Italic and Bold icons. Some icons, like the room (hashtag) icon, conventionally look the way they are regardless of the writing system. For icons that contain a question mark, the form of the question mark in the icons is common (and people don't find it strange) in systems that write from left to right, or at least the lanaguage i speak which is Arabic, with another mirrored version “؟”. However, the original form is common, and not mirroring it won’t make it look strange to the user. To enhance testing, I have begun contributing to the application’s translation and aim to complete it shortly. ^^ |
Thanks for the input @IbraChan . Let's merge the PR and see if we need to revisit later. |
This should fix the issues on icons reported here: element-hq/element-x-android#2865
There is maybe a way to add this attribute to the Figma source of truth (CC @amshakal), but waiting for it this should do the trick.
Here is a side by side comparison of the icons: