Skip to content

Commit

Permalink
add chevron-left and chevron-down import docn exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuzina authored and bartaz committed Jun 6, 2024
1 parent fc62b7f commit 2201daf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions templates/docs/patterns/icons/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,18 @@ context:
{% set social_icons = ['facebook', 'instagram', 'twitter', 'linkedin', 'youtube', 'github', 'rss', 'email'] %}

<!--
'chevron-up' and 'chevron-down' are class names, not mixin names; instead use 'chevron' for mixin import
'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') | map('replace', 'chevron-up', 'chevron') | list %}
{% set standard_icon_mixin_names = standard_icons
| map('replace', 'chevron-down', 'chevron')
| map('replace', 'chevron-up', 'chevron')
| map('replace', 'chevron-left', 'chevron')
| map('replace', 'chevron-right', 'chevron')
| list
%}

<!--
'information' is a class name, not a mixin name; instead use 'info' for mixin import
Expand Down

0 comments on commit 2201daf

Please sign in to comment.