Skip to content

Commit

Permalink
move click handler to anchor icon (ember-learn#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Nys committed Sep 10, 2023
1 parent b70a507 commit d6f4ca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/class-field-description.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<section class='{{@type}}'>
{{!-- TODO: Fix this link for a11y --}}
<h3 class='class-field-description--link' data-anchor='{{@field.name}}' role='link' {{on 'click' (fn this.updateAnchor @field.name)}}>
<h3 class='class-field-description--link' data-anchor='{{@field.name}}'>
<span class='{{@type}}-name'>{{@field.name}}</span>
{{#if @field.params}}
<span class='args'>
Expand All @@ -16,7 +16,7 @@
{{#if @field.deprecated}}
<span class='access'>deprecated</span>
{{/if}}
<a class='anchor' {{!-- template-lint-disable link-href-attributes --}}>
<a class='anchor' role='link' {{on 'click' (fn this.updateAnchor @field.name)}} {{!-- template-lint-disable link-href-attributes --}}>
{{svg-jar 'fa-link' class='class-field-description--link-hover' width='20px' height='20px'}}
</a>
</h3>
Expand Down

0 comments on commit d6f4ca9

Please sign in to comment.