Skip to content

Commit

Permalink
button: fix whitespacing in FF #737
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Nov 29, 2023
1 parent 9145cda commit 13822f4
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions layouts/partials/shortcodes/button.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,17 @@
<span class="btn cstyle {{ $style }}"{{ if $color }} style="--VARIABLE-BOX-color: {{ $color }};"{{ end }}>
{{- if $isButton }}
<button{{ if $href }} onclick="{{ $href | safeJS }}"{{ end }}{{ if gt (len $type) 0 }} type="{{ $type }}"{{ end }}>
{{- else }}
{{- else -}}
<a{{ if $href }} href="{{ $href }}"{{ if gt (len $target) 0 }} target="{{ $target }}"{{ end }}{{ end }}>
{{- end }}
{{- if and $icon (eq $iconposition "left") }}
<i class="{{ $icon }}"></i>
{{- end }}
{{ $title | safeHTML }}
{{- if and $icon (eq $iconposition "right") }}
<i class="{{ $icon }}"></i>
{{- end }}
{{- if $isButton }}
{{- if and $icon (eq $iconposition "left") }}<i class="{{ $icon }}"></i>{{ end }}
{{- if and $icon (eq $iconposition "left") $title }} {{ end }}
{{- $title | safeHTML }}
{{- if and $icon (eq $iconposition "right") $title }} {{ end }}
{{- if and $icon (eq $iconposition "right") }}<i class="{{ $icon }}"></i>{{ end }}
{{- if $isButton -}}
</button>
{{- else }}
{{- else -}}
</a>
{{- end }}
</span>
Expand Down

0 comments on commit 13822f4

Please sign in to comment.