Skip to content

Commit

Permalink
fix(link-text): expose extracted textContent
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Oct 29, 2024
1 parent 282b1b7 commit 53b710a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/pure/inspections/descriptive-link-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function RuleDescriptiveLinkText() {
report({
name: 'link-text',
scope: 'warning',
message: 'Should have descriptive text.',
message: 'Missing link textContent, title or aria-label.',
tip: 'Links with descriptive text are easier to understand for screen readers and search engines.',
})
}
Expand All @@ -30,7 +30,7 @@ export default function RuleDescriptiveLinkText() {
report({
name: 'link-text',
scope: 'warning',
message: 'Should have descriptive text.',
message: `Link text ${textContent} should be more descriptive.`,
tip: `The ${textContent} descriptive text does not provide any context to the link.`,
})
}
Expand Down

0 comments on commit 53b710a

Please sign in to comment.