Skip to content

Commit

Permalink
LPS-97577 Fix checkbox markup
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Basto committed Jul 4, 2019
1 parent 1e09995 commit 1fc3bcd
Showing 1 changed file with 33 additions and 31 deletions.
Expand Up @@ -96,39 +96,41 @@
</span>
</label>
{else}
<label>
{let $inputAttributes kind="attributes"}
{if $checked}
checked="checked"
{/if}

class="custom-control-input"
data-onchange="{$handleInputChangeEvent}"

{if $disabled}
disabled="disabled"
{/if}

name="{$name}"
type="checkbox"
value="true"
{/let}

<input {$inputAttributes} />

{if $showLabel}
<span class="custom-control-label">
<span class="custom-control-label-text">
{$label}{sp}
<div class="custom-control custom-checkbox">
<label>
{let $inputAttributes kind="attributes"}
{if $checked}
checked="checked"
{/if}

class="custom-control-input"
data-onchange="{$handleInputChangeEvent}"

{if $disabled}
disabled="disabled"
{/if}

name="{$name}"
type="checkbox"
value="true"
{/let}

<input {$inputAttributes} />

{if $showLabel}
<span class="custom-control-label">
<span class="custom-control-label-text">
{$label}{sp}
</span>
</span>
</span>

{if $required}
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-asterisk reference-mark">
<use xlink:href="{$spritemap}#asterisk" />
</svg>
{if $required}
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-asterisk reference-mark">
<use xlink:href="{$spritemap}#asterisk" />
</svg>
{/if}
{/if}
{/if}
</label>
</label>
</div>
{/if}
{/template}

0 comments on commit 1fc3bcd

Please sign in to comment.