Closed Bug 1481754 Opened 6 years ago Closed 6 years ago

Use inheritance for menu fonts

Categories

(Toolkit :: Themes, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: dao, Assigned: dao)

References

Details

Attachments

(3 files)

Rather than setting a font on every single menuitem and friends, we should set it on the parent and let it be inherited (font is inherited by default just like color).
Attached patch patchSplinter Review
Attachment #8998735 - Flags: review?(mstriemer)
Comment on attachment 8998735 [details] [diff] [review] patch Review of attachment 8998735 [details] [diff] [review]: ----------------------------------------------------------------- Poked around and didn't see any regressions. Looks like a nice cleanup to me. ::: toolkit/themes/linux/global/menu.css @@ +71,5 @@ > color: -moz-menubarhovertext; > background-color: -moz-menuhover; > } > + > +menuitem[default="true"], This rule appears to be in windows, linux and osx. Can it be moved to shared instead?
Attachment #8998735 - Flags: review?(mstriemer) → review+
(In reply to Mark Striemer [:mstriemer] from comment #3) > Comment on attachment 8998735 [details] [diff] [review] > patch > > Review of attachment 8998735 [details] [diff] [review]: > ----------------------------------------------------------------- > > Poked around and didn't see any regressions. Looks like a nice cleanup to me. > > ::: toolkit/themes/linux/global/menu.css > @@ +71,5 @@ > > color: -moz-menubarhovertext; > > background-color: -moz-menuhover; > > } > > + > > +menuitem[default="true"], > > This rule appears to be in windows, linux and osx. Can it be moved to shared > instead? I don't think there's a shared stylesheet where this would fit and I wouldn't create one for just one rule. However, I can look into whether there's more to share from menu.css in a followup.
Keywords: checkin-needed
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
This seems to have slightly increased the font-size of <select> options on macOS.
It looks like https://hg.mozilla.org/mozilla-central/diff/1c63d5a13deb/toolkit/themes/osx/global/menu.css#l1.98 and https://hg.mozilla.org/mozilla-central/diff/1c63d5a13deb/toolkit/themes/osx/global/menu.css#l1.77 made menuitems in menulists use -moz-pull-down-menu. The reason for the 'inherit' was to use the the same font as the menulist itself (which normally inherit the font from the parent). You can see the effect in the clear history menulist.
Depends on: 1483153
See Also: → 1483503
Depends on: 1485867
Depends on: 1500213
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: