Skip to content

Commit

Permalink
Use jinja template comments instead of HTML ones
Browse files Browse the repository at this point in the history
  • Loading branch information
bartaz committed Jun 6, 2024
1 parent 2201daf commit 426d151
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions templates/docs/patterns/icons/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ context:

{% set social_icons = ['facebook', 'instagram', 'twitter', 'linkedin', 'youtube', 'github', 'rss', 'email'] %}

<!--
'chevron-up', 'chevron-down', 'chevron-left', 'chevron-right' are class names, not mixin names; instead use 'chevron' for mixin import
TODO We should fix this icon-mixin naming discrepancy in the next major version.
See https://github.com/canonical/vanilla-framework/pull/5100
-->
{#
'chevron-up', 'chevron-down', 'chevron-left', 'chevron-right' are class names, not mixin names; instead use 'chevron' for mixin import
TODO We should fix this icon-mixin naming discrepancy in the next major version.
See https://github.com/canonical/vanilla-framework/pull/5100
#}

{% set standard_icon_mixin_names = standard_icons
| map('replace', 'chevron-down', 'chevron')
Expand All @@ -40,17 +40,17 @@ context:
| list
%}

<!--
'information' is a class name, not a mixin name; instead use 'info' for mixin import
TODO We should fix this icon-mixin naming discrepancy in the next major version.
See https://github.com/canonical/vanilla-framework/pull/5100
-->
{#
'information' is a class name, not a mixin name; instead use 'info' for mixin import
TODO We should fix this icon-mixin naming discrepancy in the next major version.
See https://github.com/canonical/vanilla-framework/pull/5100
#}

{% set status_icon_mixin_names = status_icons | map('replace', 'information', 'info') | list %}

<!--
Remove duplicates from the list of mixin names; otherwise there would be two 'chevron' entries
-->
{#
Remove duplicates from the list of mixin names; otherwise there would be two 'chevron' entries
#}

{% set base_icon_mixin_names = (standard_icon_mixin_names + status_icon_mixin_names + social_icons) | unique %}

Expand Down

0 comments on commit 426d151

Please sign in to comment.