Fixes #17 - add variable for colour text

This commit is contained in:
A McIlwraith 2024-09-16 09:53:49 -04:00
parent b5ab99da8d
commit f358266533

View File

@ -139,13 +139,16 @@
- return o;
- }
if !colortxt
- var colortxt = "color"
mixin accessibility-info(c)
div.acchb
span color & black
span #{colortxt} & black
small= getContrastRatio(color(c, "rgb"), "rgb(0,0,0)") + ":1"
div.acchw
span color & white
span #{colortxt} & white
small= getContrastRatio(color(c, "rgb"), "rgb(255,255,255)") + ":1"
div.aa WCAG 2.0 AA
div.accbaa.result