Closed Bug 1751986 Opened 2 years ago Closed 2 years ago

Missing focus ring after Ctrl+click or Ctrl+Space* on selected contact in new Address Book

Categories

(Thunderbird :: Address Book, defect, P4)

Thunderbird 98

Tracking

(thunderbird_esr102+ verified, thunderbird102 wontfix)

RESOLVED FIXED
103 Branch
Tracking Status
thunderbird_esr102 + verified
thunderbird102 --- wontfix

People

(Reporter: thomas8, Assigned: henry-x)

References

(Blocks 1 open bug)

Details

(Keywords: regression, ux-consistency)

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1751978 +++

Seen in 98.0a1 (2022-01-25) (64-bit), Win10

In new AB, there's sometimes no focus ring for contact items which are focused, but not selected. So focus seemingly disappears to nowhere, but is actually sitting on a contact. Which is irritating and error-prone. This is also needed to fix bug 1751978.

*: Ctrl+Space doesn't work for selecting/deselecting a contact, that's bug 1751978, but would otherwise be another way to trigger this bug.

STR:

  1. Open ("new") Address Book, and click back and forth on several ABs so that any selections and current index are gone (virgin list, important). Then click e.g. Personal AB.
  2. Out of 3 subsequent contacts, A, B, C: click to select contact B
  3. Hold Ctrl while clicking contact B again to deselect (on Windows), then move mouse away (bug: no focus ring remains)
  4. press arrow down key (to find out where the invisible focus was)

Actual results:

  • Contact B is correctly deselected after Ctrl+click (step 3)
  • Contact B has focus (as shown in step 4), but it does not have a focus ring (this bug)
  • Current focus is not visible anywhere (irritating and error-prone, this bug)
  • Pressing arrow keys correctly starts out from invisibly focused item, so C is now focused and selected (ok)
    that's).

Expected results:

  • after ctrl+click (or Ctrl+Space) on selected contact, the deselected contact should have a visible focus ring
  • For the correct behaviour, try STR in contacts side bar of composition

[Fixed by related bug 1751294]
Another inconvenient variant of the same issue:

STR

  • click back and forth on several ABs so that any selections are gone
  • click into AB search field
  • press Tab exactly twice
  • try to spot where the focus is
  • press arrow down

Actual

  • no indication of focus whatsoever, but arrow keys reveal that focus is somewhere on top of the list

Expected

  • if there's no selection, pressing tab into list must move focus ring on first contact (or perhaps on the contact which last had focus, as it does in contacts side bar although there are UI refresh glitches which require mouse moves to update the display).
Depends on: 1751294
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE

This is still happening. Probably requires fiddling with current index for the first click on an item of a virgin list, similar to bug 1751294.
Note: You won't see this after using tab to go into the list. Clicking back and forth between ABs currently restores the virgin state which is needed here.

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Summary: Missing focus ring after Ctrl+click or Ctrl+Space on selected contact in new Address Book → Missing focus ring after Ctrl+click or Ctrl+Space* on selected contact in new Address Book
No longer blocks: tb-new-addrbook
See Also: → 1738288

Mass-adding regression keyword to applicable AB bugs.

#20220530ABRegressionKeyword01

Keywords: regression

Should be (partially) addressed by bug 1752532 because using a roving tab index will give the items actual :focus styling. EDIT: Does not apply to this bug.

Depends on: 1752532
No longer blocks: 1751978
Blocks: 1751978

Is this actually a bug after bug 1751978 lands? Do you want the focus ring to be visible even when using only a mouse? If that is the case, then we should only need to change the :focus-visible selector to :focus instead.

Also, I don't think this is blocking bug 1751978, it seems adjacent.

No longer blocks: 1751978
No longer depends on: 1752532
See Also: → 1751978

(In reply to Henry Wilkes [:henry] from comment #6)

Is this actually a bug after bug 1751978 lands? Do you want the focus ring to be visible even when using only a mouse? If that is the case, then we should only need to change the :focus-visible selector to :focus instead.

I'm going to change this to use :focus instead. The treeview-listbox uses aria-activedecendent rather than a roving tab-index. I think you only switch from :focus:not(:focus-visible) to :focus-visible when the focus moves, but this doesn't happen when switching from clicking the list to using keyboard navigation because the focus remains on the treeview-listbox element, instead only aria-activedecentent changes. So to allow for this use case we'll just have to use :focus instead.

I might also adjust the focus-ring to remain visible when over selected items.

Assignee: nobody → henry
Status: REOPENED → ASSIGNED

We also make sure the focus outline is visible on selected items as well.

Depends on D149422

Comment on attachment 9282178 [details]
Bug 1751986 - Use :focus instead of :focus-visible for treeview-listbox. r=aleca

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined: No focus styling in the contacts list when switching from mouse to keyboard (unless you first tab the focus out and back).
Testing completed (on c-c, etc.): No
Risk to taking this patch (and alternatives if risky): Low. Just a CSS change.

Attachment #9282178 - Flags: approval-comm-beta?

Hasn't yet landed on nightly
To make it to beta we will want this to land on nightly before the merge, then eligble for esr102.

Target Milestone: --- → 103 Branch

Pushed by alessandro@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/e1b1405403a2
Use :focus instead of :focus-visible for treeview-listbox. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED

Comment on attachment 9282178 [details]
Bug 1751986 - Use :focus instead of :focus-visible for treeview-listbox. r=aleca

[Triage Comment]
Approved for esr102

Alex, when we get RC2 built on Monday can you test it, or delegate someone to test, that we don't have any regression from this?

Flags: needinfo?(alessandro)
Attachment #9282178 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9282178 [details]
Bug 1751986 - Use :focus instead of :focus-visible for treeview-listbox. r=aleca

[Triage Comment]
not for beta, but for esr102

Attachment #9282178 - Flags: approval-comm-esr102+
Attachment #9282178 - Flags: approval-comm-beta-
Attachment #9282178 - Flags: approval-comm-beta+

(In reply to Wayne Mery (:wsmwk) from comment #12)

Alex, when we get RC2 built on Monday can you test it, or delegate someone to test, that we don't have any regression from this?

Tested on 102. All looks and behaves correctly so far.

Flags: needinfo?(alessandro)

Tested on 102. All looks and behaves correctly so far.

Thanks for ensuring we're good

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

Attachment

General

Created:
Updated:
Size: