Skip to content

Update luminance calculation to use WCAG 2.0 standard coefficients #278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 4, 2025

Conversation

janosh
Copy link
Owner

@janosh janosh commented Mar 4, 2025

  • breaking: rename pick_bw_for_contrast() to pick_max_contrast_color()
  • improve function signatures and docstrings

janosh added 2 commits March 4, 2025 10:05
- breaking: rename `pick_bw_for_contrast()` to `pick_max_contrast_color()`
- improve function signatures and docstrings
@janosh janosh added breaking Breaking changes colors Color schemes labels Mar 4, 2025
Copy link

codecov bot commented Mar 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.17%. Comparing base (2bdbfba) to head (6a257d1).
Report is 1 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (2bdbfba) and HEAD (6a257d1). Click for more details.

HEAD has 3 uploads less than BASE
Flag BASE (2bdbfba) HEAD (6a257d1)
4 1
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #278       +/-   ##
===========================================
- Coverage   87.63%   75.17%   -12.47%     
===========================================
  Files          44       44               
  Lines        4644     4640        -4     
  Branches      893      891        -2     
===========================================
- Hits         4070     3488      -582     
- Misses        360      792      +432     
- Partials      214      360      +146     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@janosh janosh force-pushed the tweak-color-luminance branch from ea70e40 to 1eff5fd Compare March 4, 2025 15:23
@janosh janosh force-pushed the tweak-color-luminance branch from 1eff5fd to 6a257d1 Compare March 4, 2025 15:25
@janosh janosh merged commit 0b1ba7e into main Mar 4, 2025
5 of 9 checks passed
@janosh janosh deleted the tweak-color-luminance branch March 4, 2025 15:25
janosh added a commit that referenced this pull request Mar 28, 2025
…278)

* update luminance calculation to use WCAG 2.0 standard coefficients

- breaking: rename `pick_bw_for_contrast()` to `pick_max_contrast_color()`
- improve function signatures and docstrings

* skip fetching citation in CI

* github-action-markdown-link-check treat HTML status code 403 forbidden as alive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking changes colors Color schemes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant