Open Bug 1776192 Opened 1 year ago Updated 1 year ago

Create a HTML toolbar widget


(Thunderbird :: General, task)


(Not tracked)


(Reporter: henry-x, Unassigned)



We should create a HTML role="toolbar" widget with focus management as specified here:

A basic toolbar would just be a list of buttons, but we will need additional flexibility for:

  • Using plain div elements for styling purposes.
  • Using role="group" to group buttons.
  • Managing focus when buttons are added or removed (see the addon buttons and overflow button in the Spaces toolbar).

The Spaces toolbar handles a lot of this for itself, but it could be moved into a more abstract widget. Or if we find we want different implementations, we could use a controller class for the focus management (similar to SelectionWidgetController in bug 1752532).

We might also want to look at the WAI example:

We could then replace some of the xul:toolbar elements with our HTML widget. This can be used to finally bring keyboard controls to these areas. I'll set this as blocking for any existing bugs in this area since this seems like a good solution for them.

We could also use it for the address book contact actions bar ("Write", "Event", "Search", "Edit").

See Also: → 1553231

This might also be adjacent to bug 1737361.
We will need a pretty in depth discussion and action plan for this.
Great initiative in opening this bug and with the overview!

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