Skip to content

Commit

Permalink
feat(css): add focus ring for cc form inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Aug 9, 2023
1 parent 2613607 commit 7e8225b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion benefits/core/templates/core/includes/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{{ field }}

{% if field.help_text %}<small class="form-text text-body">{{ field.help_text }}</small>{% endif %}
{% if field.help_text %}<small class="d-block mt-2 form-text text-body">{{ field.help_text }}</small>{% endif %}
</div>
</div>
{% endfor %}
Expand Down
7 changes: 7 additions & 0 deletions benefits/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,13 @@ footer .footer-links li a:visited {
/* Input height should be 60px */
}

.form-container .form-control:focus,
.form-container .form-control:focus-visible {
outline: 3px solid var(--focus-color) !important;
outline-offset: 2px !important;
box-shadow: none !important;
}

.form-text {
font-size: var(--font-size-14px);
}
Expand Down

0 comments on commit 7e8225b

Please sign in to comment.