textbox-search-icon in about:addons' search field is no longer mirrored on RTL
Categories
(Toolkit :: Add-ons Manager, defect, P3)
Tracking
()
People
(Reporter: itiel_yn8, Unassigned)
References
(Regression)
Details
(Keywords: regression, rtl)
Attachments
(1 file)
(deleted),
image/png
|
Details |
See attached.
This rule is still there:
https://searchfox.org/mozilla-central/rev/3300072e993ae05d50d5c63d815260367eaf9179/toolkit/themes/windows/global/textbox.css#65
But it has no effect, same if I change it to have the :dir(rtl)
selector.
The same applies to bug 1526269 btw, which bug 1525175 also regressed.
Comment 2•5 years ago
|
||
The theme icons are going away in bug 1575905, looks like the fix for that was for the old about:addons, so I'd be surprised if that worked prior to bug 1525175.
The icon looks right on Mac in RTL, but I do see it differing from about:preferences on Windows. Unsure about Linux, but I'd imagine a Windows fix will fix it too if it's off.
Updated•5 years ago
|
I think the bigger issue here is :dir(rtl)
and -moz-locale-dir(rtl)
not being respected.
Future changes to about:addons that will require to do specific adjustments for RTL won't actually work properly on RTL.
Huh, when RTL is on, a -moz-locale-dir(ltr)
selector works on about:addons.
This can somewhat explain bug 1593840?
Updated•5 years ago
|
Interesting.
After following this STR:
- New profile, set
intl.uidirection
to1
, restart - Open about:addons, see the icon incorrently unflipped (same it would be as in LTR)
- In a new tab, set
intl.uidirection
to0
- Set it again to
1
- Go back to the already open about:addons page
... the icon will now be correctly mirrored. Reload the page and it'll unflip.
Comment 6•5 years ago
|
||
Should these icons even be flipped in RTL? The RTL guidelines [1] say magnifying glass icons should be right-handed, but this one is left-handed. This seems odd, but then looking in the Windows UI the search box next to the start menu has an icon with the same directionality. Perhaps it's supposed to be facing "forwards" on Windows? Linux uses the same icon, which makes me wonder if it should be using the Mac one which seems to be similar to what I see everywhere except for the Windows search.
[1] https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/RTL_guidelines#What_to_mirror
Thank for asking.
(In reply to Mark Striemer [:mstriemer] from comment #6)
Should these icons even be flipped in RTL? The RTL guidelines [1] say magnifying glass icons should be right-handed, but this one is left-handed.
Disclaimer: Both ntim and I were the ones who actually wrote that MDN doc :-)
By "right-handed" this refers to physically holding an object in your right hand.
See also:
https://material.io/design/usability/bidirectionality.html#mirroring-elements
Perhaps it's supposed to be facing "forwards" on Windows?
Following the info in the link above, it seems that ALL of Firefox's usage of the search sign should be switched to something like [1] (because the majority of people are holding it their right hand, regardless of RTL), but that's a discussion for another bug...
[1] https://searchfox.org/mozilla-central/source/browser/themes/shared/icons/search-glass.svg
Updated•3 years ago
|
Updated•2 years ago
|
Description
•