PromucFlow_constructor/app/client/packages/design-system/theming/src/utils
vadim 2ce4e23750
fix: WDC color APCA checks (#23660)
## Description

tl;dr Fixed APCA contrast checks for both light and dark modes (detailed
info in the ticket). Refined how we pick shade or tint for `fgOnAccent`.

Fixes #23218    

## Type of change

- Bug fix (non-breaking change which fixes an issue)
- Chore (housekeeping or task changes that don't impact user perception)


## How Has This Been Tested?

- Manual

### Test Plan
Initial POC refinement, no testing necessary

## Checklist:
### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
2023-05-24 10:31:07 +03:00
..
ColorsAccessor chore: WDS Color: refine bgAccentHover (light mode) (#23085) 2023-05-10 15:03:43 +03:00
TokensAccessor fix: WDC color APCA checks (#23660) 2023-05-24 10:31:07 +03:00
buildTokens.ts chore: wds color algo improve (#22442) 2023-04-18 13:47:21 +05:30
index.ts chore: remove unnecessary props from button and improve test color co… (#22972) 2023-05-04 13:13:05 +05:30