Skip to content

Commit

Permalink
fix dropdown icons
Browse files Browse the repository at this point in the history
  • Loading branch information
eshaben committed Jun 7, 2024
1 parent 18f01c7 commit f840333
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions material-overrides/partials/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
<a href="{{ section_item.children[0].url | url }}">
<div class="icon-col">
{% set icon_url = "assets/images/dropdown-icons/" + section_item.children[0].url.split('/')[1] %}
<img class="dropdown-icon" src="{{ icon_url + ".webp#only-dark" | url }}" alt="{{ section_item.title }}" loading="lazy">
<img class="dropdown-icon" src="{{ icon_url + "-light.webp#only-light"| url }}" alt="{{ section_item.title }}" loading="lazy">
{% set icon_url = icon_url | url %}
<img class="dropdown-icon" src="{{ icon_url + ".webp#only-dark" }}" alt="{{ section_item.title }}" loading="lazy">
<img class="dropdown-icon" src="{{ icon_url + "-light.webp#only-light" }}" alt="{{ section_item.title }}" loading="lazy">
</div>
<div class="text-col">
<span class="dropdown-title">{{ section_item.title }}</span>
Expand Down

0 comments on commit f840333

Please sign in to comment.