Closed adhrinae closed 5 years ago
sick work, here's your PR deployed to glitch for testing/QA https://svg-contrast.glitch.me
also, made a quick gif of me using it
Works great! I'll do a code review here soon
before i accept and merge, do you have interest in writing tests for the feature you implemented?
Sure! I'll try for that.
cool!
here's a few resources to help ya (and you can always ping me too)
I've written some tests focusing on color contrast values.
Perhaps I can write more tests for the a11y tool later, like checking aria-*
properties, etc.
About my testing challenge experience
ava
& puppeteer
are.ava
& puppeteer
API docs@argyleink hey 👋 I understand you've been busy, so here's a gentle reminder for this PR. Please let me know if there's anything I should do more.
yes, thanks for the nudge, you rock!
Resolve #384
fill
orstroke
(possiblypath
tag) attribute, use that value first.color
attribute instead.SVG
, hide a11y tooltip.I assumed calling
getStyle
function 3 times might be better than callinggetStyles
and checking attributes(fill
,stroke
,color
) at once for performance perspective.Since SVG node doesn't have any attribute related to the color, I think an a11y tooltip for
svg
doesn't have to appear.