Closed Bug 571842 Opened 14 years ago Closed 14 years ago

add classes to split menu for CSS addressability

Categories

(Firefox :: Menus, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 4.0b1

People

(Reporter: mcdavis941.bugs, Assigned: mcdavis941.bugs)

References

Details

Attachments

(1 file)

Dao, would it be possible to add some more classes added to the new split menu for addressability in CSS? Something like:

  <menupopup>
    ...
    <hbox class="split-menuitem">
      <menuitem class="split-menuitem-item/>
      <menu class="split-menuitem-menu"/>
    </hbox>
    ...
  </menupopup>

or whatever you think is appropriate.  The key point being adding something to the hbox container and to the contained menuitem.
Sure, would you like to write the patch?
(In reply to comment #1)
> Sure, would you like to write the patch?

Thanks, that's a nice offer.  Unfortunately, I checked my build environment and I need to update .. all of it. (Source tree, sdk, and tools.)  It might only be a day or two before that's done, or it could end up being several days by the time all the wrinkles are ironed out.

In the mean time, there's not much to this bug, so if you want me to provide edited but untested files (or file) I could do that.

Either way, I'll check back in when I can build and test, and if not this time then maybe later.
Very tiny patch.

If someone wants to suggest class names that better conform to naming conventions, I'll give it another go, but this seems reasonable.

I'm still running tests; I'll ask for review when that's done.
Comment on attachment 452861 [details] [diff] [review]
wip patch - adds classes

Asking Dao for review of the patch in comment 3.
Attachment #452861 - Flags: review?(dao)
Attachment #452861 - Flags: review?(dao) → review+
Assignee: nobody → mcdavis941.bugs
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/43b5dea56661
Status: NEW → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a6
Is there any chance to implement the new split menu in XBL (e.g. <menu type="split">)?
Current hbox + menuitem + menu implementation isn't versatile for extensions.
(In reply to comment #6)
> Is there any chance to implement the new split menu in XBL (e.g. <menu
> type="split">)?
> Current hbox + menuitem + menu implementation isn't versatile for extensions.

You should file a bug on it, first of all. The chance that it will happen will also dramatically increase if you contribute a patch. ;-)
(In reply to comment #6)
> Is there any chance to implement the new split menu in XBL (e.g. <menu
> type="split">)?
> Current hbox + menuitem + menu implementation isn't versatile for extensions.

filed bug 613156
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: