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

getContrastScore of 3.00 #83

Open
NoWorries opened this issue Nov 27, 2024 · 1 comment
Open

getContrastScore of 3.00 #83

NoWorries opened this issue Nov 27, 2024 · 1 comment

Comments

@NoWorries
Copy link

NoWorries commented Nov 27, 2024

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'

@lesliecdubs
Copy link
Member

Hey there, this project is not under active development. If you're interested in investigating whether this is a bug that could be resolved, feel free to give it a go!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants