Link-in-text-block problems #3774
Labels
fix
Bug fixes
pr
A pr has been created for the issue
rule metadata
Issues in the rule metadata code (lib/rules)
rules
Issue or false result from an axe-core rule
The recent changes to link-in-text-block rule has a few problems. First, the
data
is not converting the colors into hex, so the failureSummary is using[Object object]
instead of the hex color. Also, the contrast is not being truncated so the contrast is very long decimal number.Lastly, the issue is reporting false positives for the following HTML:
The matches function uses
textContent
to determine if the link has text, buttextContext
grabs the text of the style element so it passes the matches.The text was updated successfully, but these errors were encountered: