Skip to content

Commit

Permalink
icons fix
Browse files Browse the repository at this point in the history
  • Loading branch information
codecalm committed Jan 22, 2021
1 parent 48670c2 commit 38f9962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/_includes/cards/icons.html
Expand Up @@ -27,7 +27,7 @@ <h2 class="my-2" data-icon-preview-title>{{ first-icon }}</h2>
<div class="demo-icons-list-wrap">
<div class="demo-icons-list">
{% for icon in icons limit: limit %}
<a href="#" class="demo-icons-list-item" data-bs-toggle-icon="{{ icon }}" title="{{ icon }}" data-icon-svg="{% capture svg %}{% highlight html %}{% include ui/icon.html icon=icon %}{% endhighlight %}{% endcapture %}{{ svg | escape }}">
<a href="#" class="demo-icons-list-item" data-toggle-icon="{{ icon }}" title="{{ icon }}" data-icon-svg="{% capture svg %}{% highlight html %}{% include ui/icon.html icon=icon %}{% endhighlight %}{% endcapture %}{{ svg | escape }}">
{% include ui/icon.html icon=icon %}
<div class="mt-1 text-muted text-h5">{{ icon }}</div>
</a>
Expand All @@ -52,7 +52,7 @@ <h2 class="my-2" data-icon-preview-title>{{ first-icon }}</h2>
};

(function () {
const elements = document.querySelectorAll('[data-bs-toggle-icon]');
const elements = document.querySelectorAll('[data-toggle-icon]');

if (elements.length) {
elements.forEach(function (element) {
Expand Down

0 comments on commit 38f9962

Please sign in to comment.