Skip to content

Commit

Permalink
Added click leaf icon logic
Browse files Browse the repository at this point in the history
  • Loading branch information
BWLR committed Feb 3, 2022
1 parent 79b54b6 commit 7e22f6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/switches/_type.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="c-switch__type">
<div class="c-switch__type-label">{{ if switch_type == 'linear' }}Linear{{ elseif switch_type == 'tactile' }}Tactile{{ elseif switch_type|contains:clicky }}Clicky{{ /if }}</div>
<div class="c-switch__type-icon">
{{ if switch_type|contains:clicky }}
{{ if switch_type|contains:click }}
<img src="/images/icons/switch_type_clicky.svg" alt="Switch Type icon" />
{{ else }}
<img src="/images/icons/switch_type_{{ switch_type }}.svg" alt="Switch Type icon" />
Expand All @@ -19,7 +19,7 @@
{{ if switch_type == 'clicky-jacket' }}
Click-jacket
{{ elseif switch_type == 'clicky-bar' }}
Click-bar
Click-bar (Kailh style)
{{ elseif switch_type == 'click-leaf' }}
Click-leaf (ALPS style)
{{ /if }}
Expand Down

0 comments on commit 7e22f6d

Please sign in to comment.