Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

getContrastScore of 3.00 #83

Open
Open
@NoWorries

Description

@NoWorries

Noticed a 3:1 score marked as a Fail, is this a bug or just some rounding under the hood?

Expected result: Score of exactly 3.00 = "AA+"
Actual result: Score of exactly 3.00 = "Fail"

image

return contrast < 3 ? 'Fail' : contrast < 4.5 ? 'AA+' : contrast < 7 ? 'AA' : 'AAA'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions