How to create a firefox toolbar with type = "menu"

I have a Firefox extension with a toolbar that, when clicked, displays a panel, I achieve this by setting its type to both “menu” and “panel”. My problem is that this type of button does not match the style of the standard button (a down arrow is displayed indicating that it can be expanded). Setting class = "toolbarbutton-1" causes the button to display almost correctly on Windows, but on Linux the icon is too tall. My extension is available, including the source https://addons.mozilla.org/en-us/firefox/addon/tabcloud/ , if useful.

My question is: how should I style the toolbar so that it appears the same and with the correct height on all operating systems.

+4
source share
1 answer

So, do you want your button to look like one of the standard Firefox buttons? Unfortunately, only one of the standard Firefox buttons uses type = "menu", and for some reason known only to itself, they worked around their own error here , here and here again ... I suggest you do the same in your own CSS.

+3
source

Source: https://habr.com/ru/post/1343337/


All Articles