Closed
Bug 534166
Opened 16 years ago
Closed 16 years ago
Disabled arrow buttons in menus should be hidden
Categories
(Toolkit :: Themes, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a1
People
(Reporter: mstange, Assigned: mstange)
Details
Attachments
(1 file, 3 obsolete files)
|
2.62 KB,
patch
|
dao
:
review+
|
Details | Diff | 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 1•16 years ago
|
||
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-
| Assignee | ||
Comment 2•16 years ago
|
||
Attachment #417075 -
Attachment is obsolete: true
Attachment #419894 -
Flags: review?(dao)
| Assignee | ||
Comment 3•16 years ago
|
||
Attachment #419894 -
Attachment is obsolete: true
Attachment #419895 -
Flags: review?(dao)
Attachment #419894 -
Flags: review?(dao)
Comment 4•16 years ago
|
||
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?
Comment 5•16 years ago
|
||
> >+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
| Assignee | ||
Comment 6•16 years ago
|
||
(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.
Comment 7•16 years ago
|
||
Then global.css maybe. I think scoped stylesheets shouldn't depend on stuff outside of their scope.
| Assignee | ||
Comment 8•16 years ago
|
||
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)
Updated•16 years ago
|
Attachment #420076 -
Flags: review?(dao) → review+
| Assignee | ||
Comment 9•16 years ago
|
||
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.
Description
•