Closed Bug 1702810 Opened 3 years ago Closed 3 years ago

double shadow on the bookmarks menu popup

Categories

(Firefox :: Toolbars and Customization, defect, P2)

defect

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox87 --- unaffected
firefox88 --- unaffected
firefox89 --- fixed

People

(Reporter: mak, Assigned: mak)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [proton-toolbar] [priority:2b])

Attachments

(1 file)

If you add the bookmarks button to the toolbar, there's a second border and a shadow around the bookmarks button menupopup.

I quickly made up a few change to solve this, but didn't test it deeply:

diff --git a/browser/themes/windows/customizableui/panelUI.css b/browser/themes/windows/customizableui/panelUI.css
--- a/browser/themes/windows/customizableui/panelUI.css
+++ b/browser/themes/windows/customizableui/panelUI.css
@@ -19,16 +19,21 @@
 @supports -moz-bool-pref("browser.proton.contextmenus.enabled") {
 @media (-moz-windows-default-theme) and (-moz-os-version: windows-win10) {
   /* Prevent the global arrowscrollbox rules from replacing our background,
      or adding more padding that would misalign our submenus. */
   #BMB_bookmarksPopup::part(arrowscrollbox),
   #BMB_bookmarksPopup menupopup[placespopup=true]::part(arrowscrollbox) {
     background-color: var(--arrowpanel-background);
     padding-block-start: 0;
+    border: none;
+  }
+
+  #BMB_bookmarksPopup {
+    -moz-window-shadow: none;
   }
 }
 }

 #BMB_bookmarksPopup menupopup[placespopup=true]::part(innerbox) {
   /* emulating MozPlacesPopupArrow but without the arrow */
   box-shadow: 0 0 4px rgba(0,0,0,0.2);
   background: var(--arrowpanel-background);

(the second rule should probably be moved out of contextmenus, it was just a quick hack)

Set release status flags based on info from the regressing bug 1700148

ni'ing Neil, since this looks like fallout from bug 1700148.

Flags: needinfo?(enndeakin)

The fix mentioned above will remove the dropshadow. The only other change made by bug 1700148 was to add a border-radius.

Flags: needinfo?(enndeakin)

Thanks, Neil. mak, do you have time to post your patch for review?

Flags: needinfo?(mak)
Priority: -- → P2
Whiteboard: [proton-toolbar] → [proton-toolbar] [priority:2b]

I... think so.

Assignee: nobody → mak
Status: NEW → ASSIGNED
Flags: needinfo?(mak)
Summary: the bookmarks menupopup looks bad → double shadow on the bookmarks menu popup
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/206a10c2fae7
Remove double shadow from the bookmarks menu panel. r=NeilDeakin
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: