Skip to content

target-size rule contains typos #4148

@adamraine

Description

@adamraine

Product

axe-core

Product Version

4.8.0

Latest Version

  • I have tested the issue with the latest version of the product

Issue Description

Expectation

Failure message ends with:
"Safe clickable space has a diameter of 10px instead of at least 24px"

10px is just an example value.

Actual

Failure message ends with:
"Safe clickable space has a diameter of {$data.closestOffset}px instead of at least 24px)"

It appears that the actual data.closestOffset value is not being filled in. There is also an unpaired ) at the end of the string that I think should be removed.

How to Reproduce

Any code that fails the target-size rule.

Additional context

#4117

Metadata

Metadata

Assignees

No one assigned

    Labels

    rule metadataIssues in the rule metadata code (lib/rules)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions