Skip to content

Commit

Permalink
fix(HTML,SVG): Added <title> field to label svg icons properly
Browse files Browse the repository at this point in the history
  • Loading branch information
StfBauer committed Apr 9, 2024
1 parent 07ba1f7 commit 8becca5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions htwoo-core/src/_patterns/atoms/icons/icon-svg.hbs
@@ -1,4 +1,5 @@
<svg class="icon {{iconname}}">
{{#if title }}<title>{{ title }}</title>{{/if}}
<use xlink:href="../../images/icons.svg#{{ iconname }}"></use>
</svg>
{{!-- <span class="name"> icon-ninjacat</span> --}}
1 change: 1 addition & 0 deletions htwoo-core/src/_patterns/atoms/icons/icon.hbs
@@ -1,5 +1,6 @@
<span class="hoo-icon">
<svg class="hoo-icon-svg {{iconname}}" aria-hidden="true">
{{#if title }}<title>{{ title }}</title>{{/if}}
<use xlink:href="../../images/icons.svg#{{ iconname }}"></use>
</svg>
</span>
1 change: 1 addition & 0 deletions htwoo-core/src/_patterns/atoms/icons/ql-icon-svg.hbs
@@ -1,6 +1,7 @@
{{# qlsvg}}
<figure class="hoo-ql-media">
<svg class="hoo-media-svg" aria-hidden="true">
{{#if title }}<title>{{ title }}</title>{{/if}}
<use xlink:href="{{ src }}"></use>
</svg>
</figure>
Expand Down

0 comments on commit 8becca5

Please sign in to comment.