Closed Bug 1908937 Opened 7 months ago Closed 1 day ago

[A11Y] [Microsurveys] Consider increasing the "Submit" button contrast ratio from the Survey

Categories

(Fenix :: Experimentation and Telemetry, defect)

Firefox 130
All
Android
defect

Tracking

(a11y-review:requested, Accessibility Severity:s4, firefox130 affected, firefox137 fixed)

RESOLVED FIXED
137 Branch
a11y-review requested
Accessibility Severity s4
Tracking Status
firefox130 --- affected
firefox137 --- fixed

People

(Reporter: ljanos, Assigned: rebecatudor273)

References

Details

(Keywords: access, Whiteboard: [fxdroid][group2])

Attachments

(2 files)

Steps to reproduce

  1. Have Google Accessibility Scanner installed.
  2. Activate the micvrosurvey feature from secret settings.
  3. Launch a microsurvey after using the print feature
  4. Use the Accessibility Scanner and scan the Survey.

Expected behavior

No suggestions are made.

Actual behavior

A "Consider increasing this item's text foreground to background contrast ratio" suggestion is made, referring to the Submit text on the button.

Device information

  • Firefox version: Nightly 130.0a1
  • Android device model: Samsung Z Fold 4
  • Android OS version: Android 14
Severity: -- → S4

The Bugbug bot thinks this bug should belong to the 'Fenix::Experimentation and Telemetry' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Experimentation and Telemetry
Summary: [A11Y] [Microsurveys] Consider increasing the "Submit" button contrast ratio → [A11Y] [Microsurveys] Consider increasing the "Submit" button contrast ratio from the Survey
Whiteboard: [fxdroid][group2]
Assignee: nobody → towhite

Issue is related to the PrimaryButton component colours originally added in https://bugzilla.mozilla.org/show_bug.cgi?id=1886243

Depends on: 1886243

It seems that the button is in the disabled state (per iOS, this would be until an option is selected by a user) - so technically the 4.5:1 or higher color contrast requirement does not apply here.

We still want the text to be legible for users, so they could estimate the button’s action whenever they make a selection above, but there it’s 2.79:1 which is close to 3:1 for non-text UI per WCAG, which again does not apply to disabled controls…

We could do better by making it 3:1 or higher in color contrast for the label text against its background, but I would mark it as access-S4 though, since it’s a delight question not compliance. AFAIK the Design systems team is also working on the updated set of colors that could be used to indicate the disabled state of the control, but this is still in progress.

Accessibility Severity: --- → s4
Keywords: access
See Also: → 1876719

I'm submitting a request for an a11y review of this issue as per Anna's recommendation.

Description:

  • We are aiming to make the disabled buttons in Android more color accessible (at least a 3:1 ratio), while still maintaining a disabled look. The design systems team will provide color recommendations for the disabled button states.

How do we test this?

  • Once implemented, the new buttons should be updated everywhere in the Android UI design system. Therefore you should be able to follow the "steps to reproduce" linked in this bug to open an example button.

When will this ship? Don't know as we don't know when the Acorn team will provide the final direction
Tracking bug/issue: Bug 1908937
Initial Design Explorations
Engineering lead: Tom White

Please describe the accessibility guidelines you considered and what steps you've taken to address them:

  • Colour contrast 3:1 and above
  • Maintaining a clear cognitive affordance that let's user know that the button is disabled
  • The screen reader should announce the disabled state of the button

Describe any areas of concern to which you want the accessibility team to give special attention:

  • Please help us strike a balance between color contrast accessibility but also clear communication that something isn't clickable.
a11y-review: --- → requested
See Also: → 1910188
See Also: → 1912909
See Also: → 1944292
Assignee: towhite → rebecatudor273
Attachment #9466927 - Attachment description: WIP: Bug 1908937 - [a11y]Increase contrast for disabled buttons → Bug 1908937 - [a11y]Increase contrast for disabled buttons
Pushed by rtudor@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/97fd4991a8d8 [a11y]Increase contrast for disabled buttons r=android-reviewers,twhite
Status: NEW → RESOLVED
Closed: 1 day ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: