Closed Bug 966817 Opened 10 years ago Closed 10 years ago

It should be possible to create a button without an icon, using text instead

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: evold, Unassigned)

Details

It should be possible to create a text button, instead of an icon button I think.
As far as I know is not the direction UX wants, and we should create custom toolbaritem instead of toolbarbutton, and it seems that fx-team is not particularly happy about that,  but asking is not harming anyone.

I'm also afraid that just text button could be messed up a bit the navbar – they will be naturally wider than icon's button – and if we let the text to be updated dynamically like the icon, we'll end up to have resizing navbar all the time, and it's something we do not want to have. Therefore, we should specify `width` as widget or something like that, and the it could probably makes sense have different classes (e.g. TextButton?).
As compromise, in order to avoid the problems on navbar, we could makes this type of buttons only for Toolbar's API, like ui/frame at the moment: so you can actually create text button, but only in custom toolbar.

So, first thing first, UX: Stephen, what do you think?
Flags: needinfo?(shorlander)
What happens atm if we use an image that is say 100px wide and 50px in height?
Flags: needinfo?(zer0)
It should be automatically resize, at least on height. Because we drop the `size` property, it won't probably resize on `width` and we should fix it. Officially, we support only square buttons.
Flags: needinfo?(zer0)
While I understand that this might be desirable sometimes, part of the goal is creating a consistent and predictable experience for adding toolbar items.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(shorlander)
Resolution: --- → WONTFIX
I agree with Stephen.
You need to log in before you can comment on or make changes to this bug.