Skip to content

Commit

Permalink
add other class
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Dec 6, 2024
1 parent 5b8e08d commit 6140a64
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/radios/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@
}}
{% if radio.other %}
{% set otherType = radio.other.otherType | default('input') %}
<span
class="ons-radio__other{{ ' ons-radio__other-input' if otherType == 'input' else '' }}"
id="{{ radio.id }}-other-wrap"
>
{% set otherClass = " ons-radio__other-" + otherType %}
<span class="ons-radio__other{{ otherClass }}" id="{{ radio.id }}-other-wrap">
{% if otherType == "input" %}
{% from "components/input/_macro.njk" import onsInput %}
{{
Expand Down

0 comments on commit 6140a64

Please sign in to comment.