Skip to content

Commit

Permalink
Merge pull request #337 from helsingborg-stad/fix/data-nosnippet-icons
Browse files Browse the repository at this point in the history
Fix: adding nosnippet to parent
  • Loading branch information
Anna authored Oct 10, 2023
2 parents 932ce6f + 0134eca commit 35383ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/php/Component/Icon/Icon.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function init()
$this->data['attributeList']['role'] = "img";
$this->data['attributeList']['aria-label'] = $this->getAltText($icon);
$this->data['attributeList']['alt'] = $this->getAltText($icon);
$this->data['attributeList']['data-nosnippet'] = "";
}

private function iconIsSvg($icon)
Expand Down

0 comments on commit 35383ca

Please sign in to comment.