Closed Bug 1548917 Opened 6 years ago Closed 6 years ago

[Accessibility] Focus state refinements

Categories

(Firefox :: New Tab Page, defect, P1)

67 Branch
defect

Tracking

()

VERIFIED FIXED
Firefox 68
Iteration:
68.4 - Apr 29 - May 12
Tracking Status
firefox68 --- verified

People

(Reporter: wolasi, Assigned: gsuntop)

References

Details

(Keywords: github-merged)

Attachments

(6 files, 2 obsolete files)

Let's fix the following

  • Clipping of the focus state blue outline around images, see cards and Top Sites tiles
  • Focus state and hover state should be applied to the same element to prevent awkward transition when clicking on an item.

Spec
https://www.figma.com/file/0xZkmT86rSXbGRB4eIvrn0ts/New-Tab-Spec-for-Fx-v68?node-id=383%3A1

Assignee: nobody → gsuntop
See Also: → 1548995
Iteration: --- → 68.4 - Apr 29 - May 12
Priority: -- → P1
Attached image Screen Shot 2019-05-09 at 4.17.28 PM.png (obsolete) —
Attachment #9063945 - Flags: ui-review?(wkonu)

This isn't looking as expected, so let's just nix the inner dark blue outline. See updated spec for reference https://www.figma.com/file/0xZkmT86rSXbGRB4eIvrn0ts/New-Tab-Spec-for-Fx-v68?node-id=383%3A1

Attached image Screen Shot 2019-05-10 at 1.59.25 PM.png (obsolete) —
Attachment #9063945 - Attachment is obsolete: true
Attachment #9063945 - Flags: ui-review?(wkonu)
Attachment #9064167 - Flags: ui-review?(wkonu)

Is there an expected behavior for focus and hover at the same time? (Or maybe it just doesn't really matter.)

:gvn update outline looks good

:Mardak The issue is that the focus and hover effects are being applied to different elements hence the middle scenario in your mock up. :gvn this is the final issue for this bug.

Do you also want a screenshot of the focus for dark theme?

Dark theme uses the same styling, but I can put up a screenshot if wanted.

I'll move this into code review now...

Dark theme shouldn't use the same color, check the spec. It should be rgba(69, 161, 255, 0.4)
Also what about the overlapping of the active and hover states, that still hasn't been addressed.

Flags: needinfo?(gsuntop)

Ok, unmoving into code review.

Flags: needinfo?(gsuntop)

So...what do you want for the overlapping of the active and hover states? Just the hover style...or something different?

^

Flags: needinfo?(wkonu)

If the hover and focus effect are applied to the same element there won't be an overlap

Flags: needinfo?(wkonu)

I understand. Do you want the hover state to override the focus state when you hover on a focused item?

Flags: needinfo?(wkonu)

Something I noticed testing on latest nightly is the standard link focusing behavior after you click it. E.g., cmd-click to open a link in a new tab and switching back to about:newtab shows the focus ring or alternatively if you click and drag a link (and drop anywhere in the page to not actually navigate). This is just changing the styling of focus, so I'm guessing the persisted blue ring after a mouse interaction is expected ?

Do you have screenshots for these scenarios?

Flags: needinfo?(wkonu) → needinfo?(gsuntop)

Yeah, Ed put some up above: https://bugzilla.mozilla.org/show_bug.cgi?id=1548917#c5

I can change to whatever behavior/appearance is desired for hovered, focused, and hovered over focused. Just need to know what that is specifically. Thanks!

Flags: needinfo?(gsuntop)

(note: now hover on focus looks just like regular hover)

Attachment #9064167 - Attachment is obsolete: true
Attachment #9064167 - Flags: ui-review?(wkonu)
Attachment #9064900 - Flags: ui-review?(wkonu)

(note: now hover on focus looks just like regular hover)

Attachment #9064901 - Flags: ui-review?(wkonu)

Hover on focus looks good to me.

Attachment #9064901 - Flags: ui-review?(wkonu)

Ok cool will move back into code review!

Comment on attachment 9064900 [details] 1. hover 2. focus (light theme) 💪
Attachment #9064900 - Flags: ui-review?(wkonu)
Blocks: 1552599
Status: NEW → RESOLVED
Closed: 6 years ago
Keywords: github-merged
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68

Focus state color for Top Site tile is not to spec for Dark Theme. Should be rgba(69, 161, 255, 0.4) like for the cards.

Flags: needinfo?(gsuntop)
No longer blocks: pocket-newtab-69

@gvn, did we end up removing the inner dark blue outline? I'm still seeing it on all platforms when focusing cards. I don't see it when I focus Top Sites.

@wolasi, we'll need to open a new BZ ticket for further tweaks since code was landed for this ticket already. Thx!

Flags: needinfo?(gsuntop) → needinfo?(wkonu)

Resetting the ni? for comment 25.

Flags: needinfo?(gsuntop)
Flags: needinfo?(gsuntop)
Flags: needinfo?(wkonu)

I have verified that the focus state's appearance is like the ones in the design dock on Nightly 68.0a1 (Build ID 20190519213707) and the latest Nightly 69.0a1 (Build ID 20190522152821) on Windows 10, macOS 10.14, and Arch Linux 4.14.3.

Status: RESOLVED → VERIFIED
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: