Skip to content

Commit

Permalink
⚡ update feedback widget
Browse files Browse the repository at this point in the history
  • Loading branch information
colinwilson committed Aug 20, 2023
1 parent 02199d8 commit 20e35b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/docs/footer/feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="form-emoji d-flex ps-2">
{{ range $index, $value := $emoticons }}
<div class="radio-emoji">
<input type="radio" name="feedback-emoticon" autocomplete="off" value="{{ $value }}" id="radio_{{ $index }}" />
<input type="radio" name="feedback-emoticon" autocomplete="off" value="{{ $value | humanize | title }}" id="radio_{{ $index }}" />
<label class="d-flex justify-content-center align-items-center" for="radio_{{ $index }}">
{{ $emoticon := resources.Get ( printf "%s%s.svg" "images/icons/feedback/" $value ) }}
{{ $emoticon.Content | safeHTML }}
Expand Down Expand Up @@ -80,7 +80,7 @@
{{ if .Site.GoogleAnalytics -}}
gtag('event', '{{ replaceRE `( {1,})` "_" (.Site.Params.feedback.emoticonEventName | default "feedback" | lower) }}',
{
'rating': rating,
'rating': rating.replace(/\s+/g, '_').toLowerCase(),
'message': message,
'event_callback': success
}
Expand Down

0 comments on commit 20e35b8

Please sign in to comment.