Page MenuHomePhabricator

TextArea: override opacity styles when textarea is disabled in iOS
Open, Needs TriagePublic1 Estimated Story Points

Description

Overview

The disabled TextArea has specific styles based on the Figma design spec.

Screenshot 2023-06-08 at 12.49.06 PM.png (260×813 px, 13 KB)

In Safari iOS & Chrome iOS, the disabled styles do not match the design spec sheet. This is due to the default opacity settings in iOS. The default setting in iOS applies an opacity: 0.4 which results in textarea's text color and background color being much lighter in color and making it hard to read.

Issue

  • The text color and background color of the element <textarea> is light and hard to read in the disabled state in these known browsers: iOS Safari, iOS Chrome
    • iPhone 14 Pro Max - iOS 16.4
      Simulator Screenshot - iPhone 14 Pro Max - 2023-06-07 at 12.09.41.png (2×1 px, 288 KB)
    • iPad Pro (11in) - 2nd gen - iOS 14.0
      Simulator Screenshot - iPad Pro (11-inch) (2nd generation) - 2023-06-12 at 18.39.38.png (2×1 px, 311 KB)

Acceptance criteria

  • override the iOS default opacity to make text visible in a disabled state
  • test in Xcode Simulator or on a real ios device

Resources

  • Similar issue found in a GitHub repo

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
lwatson renamed this task from TextArea: disabled textarea in iOS Safari to TextArea: fix lightened font color in disabled state for specific browsers.Jun 9 2023, 12:38 PM
lwatson updated the task description. (Show Details)
lwatson renamed this task from TextArea: fix lightened font color in disabled state for specific browsers to TextArea: fix lightened font color when disabled for specific browsers.Jun 9 2023, 2:02 PM
lwatson renamed this task from TextArea: fix lightened font color when disabled for specific browsers to TextArea: fix lightened font color when disabled in iOS browser.Jun 9 2023, 8:03 PM
lwatson renamed this task from TextArea: fix lightened font color when disabled in iOS browser to TextArea: fix font color when disabled in iOS.Jun 13 2023, 12:20 AM
lwatson updated the task description. (Show Details)

Agree this is not the best, but perhaps it can be relatively low priority since it does not appear to be required for disabled text to be color contrast compliant, per https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html (emphasis mine):

1.4.3 Contrast (Minimum):
Text or images of text that are part of an inactive user interface component, that are pure decoration, that are not visible to anyone, or that are part of a picture that contains significant other visual content, have no contrast requirement.

CCiufo-WMF set the point value for this task to 1.Jun 22 2023, 4:27 PM
lwatson renamed this task from TextArea: fix font color when disabled in iOS to TextArea: override opacity styles when disabled in iOS.Jun 26 2023, 4:24 PM
lwatson updated the task description. (Show Details)
lwatson renamed this task from TextArea: override opacity styles when disabled in iOS to TextArea: override opacity styles when textarea is disabled in iOS.Jun 26 2023, 4:26 PM
egardner raised the priority of this task from Low to Needs Triage.Oct 2 2023, 6:52 PM
egardner moved this task from Up Next to Backlog on the Design-Systems-Team board.