Closed Bug 1530735 Opened 1 year ago Closed 1 year ago

[RTL] Mirror the Pin/Unpin icons on the Page Actions menu

Categories

(Firefox :: Theme, defect, P5)

defect

Tracking

()

VERIFIED FIXED
Firefox 67
Tracking Status
firefox67 --- verified

People

(Reporter: itiel_yn8, Assigned: rrosario)

References

Details

(Keywords: rtl)

Attachments

(1 file)

In RTL locales the Pin/Unpin icons should be mirrored.

I suppose the responsible code is around here:
https://searchfox.org/mozilla-central/source/browser/themes/shared/urlbar-searchbar.inc.css#163-172

Component: Activity Streams: Newtab → Theme
Priority: -- → P5

Adding the following rule seems to fix it for me:

#pageAction-panel-pinTab:-moz-locale-dir(rtl) > .toolbarbutton-icon,
#pageAction-urlbar-pinTab:-moz-locale-dir(rtl),
#pageAction-panel-pinTab[pinned]:-moz-locale-dir(rtl) > .toolbarbutton-icon,
#pageAction-urlbar-pinTab[pinned]:-moz-locale-dir(rtl) {
  transform: scaleX(-1);
}

Maybe it's better to merge it with the sendToDevice rule?

(In reply to Itiel from comment #1)

Maybe it's better to merge it with the sendToDevice rule?

Yeah, probably. Thank you!

Assignee: nobody → rrosario
Pushed by rrosario@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b02d1b4938cc
[RTL] Mirror the Pin/Unpin icons on the Page Actions menu r=andreio
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 67

Looking good on latest Nightly. Thanks!

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.