Closed
Bug 1481754
Opened 6 years ago
Closed 6 years ago
Use inheritance for menu fonts
Categories
(Toolkit :: Themes, enhancement, P3)
Toolkit
Themes
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).
Assignee | ||
Comment 1•6 years ago
|
||
Attachment #8998735 -
Flags: review?(mstriemer)
Assignee | ||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
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+
Assignee | ||
Comment 4•6 years ago
|
||
(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.
Assignee | ||
Updated•6 years ago
|
Keywords: checkin-needed
Pushed by apavel@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/1c63d5a13deb
Use inheritance for menu fonts. r=mstriemer
Keywords: checkin-needed
Comment 6•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
This seems to have slightly increased the font-size of <select> options on macOS.
Comment 9•6 years ago
|
||
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.
You need to log in
before you can comment on or make changes to this bug.
Description
•