Closed Bug 534166 Opened 16 years ago Closed 16 years ago

Disabled arrow buttons in menus should be hidden

Categories

(Toolkit :: Themes, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1

People

(Reporter: mstange, Assigned: mstange)

Details

Attachments

(1 file, 3 obsolete files)

Attached patch v1 (obsolete) — Splinter Review
This patch is Mac-only, but I think Windows natively does the same. I haven't tested Linux.
Attachment #417075 - Flags: review?(dao)
Comment on attachment 417075 [details] [diff] [review] v1 This doesn't seem to take horizontal scrollboxes into account. > autorepeatbutton { >+ -moz-appearance: menuitem; I don't think this is appropriate. It seems that mozilla-central uses vertical arrowscrollboxes only in menus, but it's still a general-purpose binding.
Attachment #417075 - Flags: review?(dao) → review-
Attached patch v2 (obsolete) — Splinter Review
Attachment #417075 - Attachment is obsolete: true
Attachment #419894 - Flags: review?(dao)
Attached patch v3 (obsolete) — Splinter Review
Attachment #419894 - Attachment is obsolete: true
Attachment #419895 - Flags: review?(dao)
Attachment #419894 - Flags: review?(dao)
Comment on attachment 419895 [details] [diff] [review] v3 >+/* autorepeatbuttons in menus */ I'm afraid this belongs in menu.css, although this would currently spread the 14px across multiple files, which is ugly. >+autorepeatbutton:not([orient="horizontal"]) { >+ height: 14px; >+} Could the selector be menupopup > .popup-internal-box > .autorepeatbutton instead?
> >+autorepeatbutton:not([orient="horizontal"]) { > >+ height: 14px; > >+} > > Could the selector be menupopup > .popup-internal-box > .autorepeatbutton > instead? Or, in order to get it to work, menupopup > .popup-internal-box > autorepeatbutton
(In reply to comment #4) > (From update of attachment 419895 [details] [diff] [review]) > >+/* autorepeatbuttons in menus */ > > I'm afraid this belongs in menu.css, menu.css is only applied to menuitems and menuseparators, but not to the menupopup itself. So I can't target autorepeatbuttons from menu.css.
Then global.css maybe. I think scoped stylesheets shouldn't depend on stuff outside of their scope.
Attached patch v4Splinter Review
OK, global.css. I changed the selectors to only ".popup-internal-box > autorepeatbutton" (without "menupopup > ") because I think that's specific enough and because the other selector doesn't work in the bookmarks bar (there's an extra hbox in those menupopups). I also noticed that the right size is 15px, not 14px ;)
Attachment #419895 - Attachment is obsolete: true
Attachment #420076 - Flags: review?(dao)
Attachment #419895 - Flags: review?(dao)
Attachment #420076 - Flags: review?(dao) → review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: