Bug 1665511 Comment 135 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

I think the current one-word `title` attributes for the spaces buttons ("Mail", "Calendar", etc) are not very useful because they are not descriptive of their actions. I think we should keep the old `title` "Switch to the mail tab" (or rather "Switch to the Mail space") before revision a7826463e5c2.

The benefit of this is more obvious once the shortcut patch lands. Currently it would be

```html
<button title="Mail (Ctrl+1)" aria-label="Mail" aria-keyshortcuts="Control+1">
  <img alt="" />
</button>
```

The accessible name for the button would be "Mail" and the accessible description would be "Mail (Ctrl+1)". I also think since "Mail" is a just a noun, rather than a verb, it is not the clearest that "Ctrl+1" is a shortcut for an action (switching to the mail space).

In contrast consider

```html
<button title="Switch to the Mail space (Ctrl+1)" aria-keyshortcuts="Control+1">
  <img alt="Mail" />
</button>
```

In the second form, the accessible name of the button remains the same brief "Mail", and the accessible description is "Switch to the Mail space (Ctrl+1)". This is appropriate and very clear to all users.

Note, I personally don't think there is a practical disadvantage to having a longer title that is still only one clause. Whilst it might become unnecessary once a user is familiar with the application, the same applies to lots of buttons with titles, and I don't think it would be bothersome.

What are other people's thoughts?
I think the current one-word `title` attributes for the spaces buttons ("Mail", "Calendar", etc) are not very useful because they are not descriptive of their actions. I think we should keep the old `title` "Switch to the mail tab" (or rather "Switch to the Mail space") before revision a7826463e5c2.

The benefit of this is more obvious once the shortcut patch lands. Currently it would be

```html
<button title="Mail (Ctrl+1)" aria-label="Mail" aria-keyshortcuts="Control+1">
  <img alt="" />
</button>
```

The accessible name for the button would be "Mail" and the accessible description would be "Mail (Ctrl+1)". I also think since "Mail" is a just meant to be a noun, rather than a verb, it is not the clearest that "Ctrl+1" is a shortcut for an action (switching to the mail space).

In contrast consider

```html
<button title="Switch to the Mail space (Ctrl+1)" aria-keyshortcuts="Control+1">
  <img alt="Mail" />
</button>
```

In the second form, the accessible name of the button remains the same brief "Mail", and the accessible description is "Switch to the Mail space (Ctrl+1)". This is appropriate and very clear to all users.

Note, I personally don't think there is a practical disadvantage to having a longer title that is still only one clause. Whilst it might become unnecessary once a user is familiar with the application, the same applies to lots of buttons with titles, and I don't think it would be bothersome.

What are other people's thoughts?

Back to Bug 1665511 Comment 135