Skip to content

Commit

Permalink
Replace deprecated USWDS v1 form hint class (#634)
Browse files Browse the repository at this point in the history
Why? For better future compatibility with the design system, and consistency across Login.gov products.
  • Loading branch information
aduth authored Apr 17, 2023
1 parent e879f39 commit c2aea8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/simple_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
b.use :label, class: 'usa-label'
# changed input class from field to usa-input
b.use :input, class: 'block col-12' # usa-input'
b.use :hint, wrap_with: { tag: 'div', class: 'usa-form-hint' }
b.use :hint, wrap_with: { tag: 'div', class: 'usa-hint' }
b.use :error, wrap_with: { tag: 'div', class: 'usa-error-message' }
end

Expand Down

0 comments on commit c2aea8c

Please sign in to comment.