Content deleted Content added
add links/visited links contrast check to demo |
specificity for warnings |
||
Line 447:
end
function inlineError(details, icon)
return mw.html.create("span")
:css("color", "darkred")
Line 457:
:css("text-decoration", "underline")
:css("text-decoration-style", "dotted")
:wikitext(icon or "?")
)
:wikitext(")")
end
function inlineWarning(details, icon)
return mw.html.create("span")
:css("color", "darkred")
Line 471:
:css("text-decoration", "underline")
:css("text-decoration-style", "dotted")
:wikitext(icon or "!")
)
:wikitext(")")
Line 529:
color
:wikitext(" ")
:node(inlineWarning("This color has contrast issues with links (not WCAG 2.0 AA-compatible).", "L"))
end
if catColorVisitedLinkRatio < 4.5 then
color
:wikitext(" ")
:node(inlineWarning("This color has contrast issues with visited links (not WCAG 2.0 AA-compatible).", "V"))
end
end
|