Commit 5208c690 authored by Emilio Cobos Álvarez's avatar Emilio Cobos Álvarez
Browse files

Bug 1706496 - Specify background along with color for menupopups. r=dao, a=RyanVM

Otherwise the menupopup retains the native "Menu" color, which inherits
to menuitems, and can cause contrast issues for HCM users.

It also makes more sense to specify color along with background anyways.

Differential Revision: https://phabricator.services.mozilla.com/D112909
parent dfa2cb5a
......@@ -135,13 +135,13 @@ menuitem[customoptionstyling="true"] {
menulist > menupopup {
font: inherit;
color: FieldText;
}
menulist > menupopup > menuitem,
menulist > menupopup > menucaption,
menulist > menupopup > menu {
max-width: none;
color: FieldText;
}
/* checked menuitems */
......
......@@ -448,13 +448,13 @@ xul|menulist > xul|menupopup {
border: 1px solid var(--in-content-box-border-color);
border-radius: 2px;
background-color: var(--in-content-box-background);
color: var(--in-content-text-color);
}
xul|menulist > xul|menupopup xul|menu,
xul|menulist > xul|menupopup xul|menuitem {
appearance: none;
font-size: 1em;
color: var(--in-content-text-color);
padding-block: 0.2em;
padding-inline: 10px 30px;
}
......
......@@ -251,6 +251,7 @@ menuitem[_moz-menuactive="true"] {
menulist > menupopup {
font: inherit;
color: FieldText;
}
menulist > menupopup > menuitem,
......@@ -260,7 +261,6 @@ menulist > menupopup > menu {
border: 1px solid transparent;
padding-inline: 5px;
max-width: none;
color: FieldText;
}
menulist > menupopup > menuitem[_moz-menuactive="true"],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment