feat: wcagify contrast checker#52
Conversation
Initial setup of the contrast checker feature for the WCAGify browser extension. Layout and functionality still need to be refined.
…connect to element picker Replaced the first design version of the contrast checker with the second design version. Connected the contrast checker to the element picker to automatically populate background and foreground color inputs. Fixed a bug where the background element was not shown due to no value being found.
Fixed a bug where the element picker failed to correctly detect SVG and background colors.
…t errors Fixed normalizeHex() using a stale background value when fgColor and bgColor update in the same picker event, causing an incorrect contrast ratio for alpha colors. Replaced the any cast for EyeDropper with a typed constructor guard for strict TypeScript compliance.
…labels Added error handling for clipboard write failures to prevent unhandled Promise rejections. Added programmatic labels to the color and text inputs.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Added support for calculating the background color when an image is used instead of a solid color.
fix(contrast-checker): restore missing contrast checker