Skip to content
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

ui5-icon: add information to all icons whether they should mirror in RTL #1831

Closed
vladitasev opened this issue Jun 18, 2020 · 0 comments · Fixed by #1833
Closed

ui5-icon: add information to all icons whether they should mirror in RTL #1831

vladitasev opened this issue Jun 18, 2020 · 0 comments · Fixed by #1833
Assignees
Labels
enhancement New feature or request High Prio

Comments

@vladitasev
Copy link
Contributor

In our icons metadata (the big JSON) we should add info which icons must be mirrored to RTL and which not. Add a new property, f.e. called m from mirror, and only set it to true for some of the icons (to save space). Use it for whichever are fewer, f.e. m: true or m: false.

Then use this property inside Icon.js/hbs in order to enforce the correct mirror behavior.

Create a test section in Icon.html for that

@vladitasev vladitasev added enhancement New feature or request High Prio labels Jun 18, 2020
@ilhan007 ilhan007 self-assigned this Jun 18, 2020
ilhan007 added a commit that referenced this issue Jun 22, 2020
Currently all icons are mirrored in RTL, but some of the icons should not be mirrored in RTL. The best example is the "accept" icon (checkmark) which does not make sense when mirrored. Now we keep info as "ltr" field in the SAP-Icons.json, which means an icon should remain as it is in RTL, or in other words it is always LTR. We can call the field differently in the SVGRegistry if we want - suppressMirroring, noMirror. I named it "ltr" everywhere for now.

FIXES: #1831
@ilhan007 ilhan007 added this to Top Priorities in UI5 Web Components - Roadmap Aug 19, 2020
@ilhan007 ilhan007 moved this from Top Priorities to 1.0.0-rc.9 (planned for Oct, 2020) in UI5 Web Components - Roadmap Aug 19, 2020
@ilhan007 ilhan007 removed this from 1.0.0-rc.9 (planned for Oct, 2020) in UI5 Web Components - Roadmap Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request High Prio
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants