-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Bug]The images for the "Take a position" card are not correctly mirrored on RTL #9316
Comments
Attached is a zip of the assets with correct mirroring. |
Was going to try out closing this issue. It seems fairly straight forward and I've read as much of the new person documentation to feel somewhat confident. Is this issue still available? When I updated the project it looked like the drawable resources were still the old png. Thanks for any support offered! |
@Benbyday I'm in the process of optimising precisely these resources since there is a fairly large number of pngs required, and I'm using SVG + path attributes for that. This would have been a great first issue, but unfortunately it's incorporated into my task. |
@BranescuMihai Can you go into detail what you mean by optimizing? It sounds like something I might not have accounted for and would like to understand as best I can. |
@Benbyday sure! For the illustrations in question, the only difference between the dark/light versions is the border. As such, we can use only one SVG resource, and have the border as an attribute that corresponds to a different colour for each theme. So basically we'll have 4 SVGs instead of 40 PNGs:
The same diff is between the selected/unselected state, so I'm currently trying to use colour selectors to reduce it to only two (top/bottom) |
@BranescuMihai If I'm understanding correctly. Instead of having a PNG for each scenario, creating an SVG that can be scaled for most scenarios is the basics. If that's the case, it does appear as if the RTL language is not a perfect mirror of the LTR image (the magnifying glass is not mirrored when everything else is) I don't know how crucial that is, but it seemed like possibly an important observation. Also I'm a little confused how I don't currently see a selected vs deselected PNG for this fragment, how was this being done before? |
Yep, scaling SVGs is basic stuff, and using attributes for path colouring is a small addition. That's correct, we cannot auto-mirror for RTL in this case, this is why we're working with UX to get the needed resources. |
Prerequisites
The app is freshly installed or cleared data from android app settings.
Steps to reproduce
Expected behavior
The icons are displayed correctly in the RTL language.
Actual behavior
The Radion button hovers the context from the image.
Device information
Android device:
Fenix version:
Notes
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: