Skip to content

[Testing][A11y] Contrast check fails for "Test starting" in flutter_test binding #179181

@desmond206x

Description

@desmond206x

Steps to reproduce

Check text color FF917FFF against background color FEF7FFFF.

Why is there the color code FF917FFF for the text in:

static const TextStyle _messageStyle = TextStyle(color: Color(0xFF917FFF), fontSize: 40.0);
static const Widget _preTestMessage = Center(
child: Text('Test starting...', style: _messageStyle, textDirection: TextDirection.ltr),
);

Expected results

Contrast ratio should be above 3.0:1

Actual results

Contrast ratio is 2.99:1

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: tests"flutter test", flutter_test, or one of our testsframeworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-accessibilityOwned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)triaged-accessibilityTriaged by Framework Accessibility team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions