Skip to content

Commit

Permalink
fix(spinner-button): add margin around the spinner; center
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Oct 13, 2022
1 parent 7476a80 commit 3469e9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benefits/core/templates/core/includes/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
{% endif %}
<div class="col-lg-3 offset-2 offset-sm-2 offset-lg-0 col-sm-8 col-8">
{% if recaptcha.enabled %}
<button class="btn btn-lg btn-primary spinner-hidden g-recaptcha"
<button class="btn btn-lg btn-primary spinner-hidden d-flex justify-content-center align-items-center g-recaptcha"
data-sitekey="{{ recaptcha.site_key }}"
data-callback="onSubmit"
data-action="submit">
<span class="btn-text">{{ form.submit_value }}</span>
<span class="spinner-border spinner-border-sm" role="status"></span>
<span class="spinner-border spinner-border-sm m-1" role="status"></span>
</button>
{% else %}
<button class="btn btn-lg btn-primary spinner-hidden" data-action="submit">
<button class="btn btn-lg btn-primary spinner-hidden d-flex justify-content-center align-items-center" data-action="submit">
<span class="btn-text">{{ form.submit_value }}</span>
<span class="spinner-border spinner-border-sm" role="status"></span>
<span class="spinner-border spinner-border-sm m-1" role="status"></span>
</button>
{% endif %}
</div>
Expand Down

0 comments on commit 3469e9b

Please sign in to comment.