Skip to content

Commit 198e7b7

Browse files
committed
Give the anchor link an aria-label
1 parent 7c92c36 commit 198e7b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/components/class-field-description.hbs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
{{#if @field.deprecated}}
1717
<span class='access'>deprecated</span>
1818
{{/if}}
19-
{{!-- TODO: Fix this link for a11y --}}
20-
<a class='class-field-description--link' href="#{{@field.name}}">
21-
{{svg-jar 'link' width='20px' height='20px'}}
19+
<a class='class-field-description--link' href="#{{@field.name}}" aria-label="Jump to {{@field.name}}">
20+
{{svg-jar 'link' width='20px' height='20px' aria-hidden='true'}}
2221
</a>
2322
</h3>
2423
{{#if @model.module}}

0 commit comments

Comments
 (0)