Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull in latest updated to USWDS Form Builder from base #62

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KeithNava
Copy link

Ticket

Changes

Pull in latest code into USWDS Form Builder from base starter template

Context for reviewers

Specifically addresses bullet point 4 from #33

Testing

Provide testing instructions and evidence that the code works as expected. Include screenshots, GIF demos, shell commands or output to help show the changes working as expected. ProTip: you can drag and drop or paste images into this textbox.

Comment on lines +103 to +105
# Actual USWDS mask functionality broken until this is fixed:
# https://github.com/uswds/uswds/issues/5517
# append_to_option(options, :class, " usa-masked")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This upstream issue has been marked as resolved since v3.8.1, have we tested it?

The lock file looks be using USWDS 3.8.0 at the moment, so a minor bump to resolve this would be okay IMO, we don't need to do a big update to 3.11.0 as a part of this work.

Also the content us_form_with.tax_id_format needs added, like for the date picker below.

Though big picture, not sure about including a "tax_id_field" as a part of the generic Rails app. 🤔 @lorenyu any thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have strong preferences either way at this point since I think it's relatively easy to clean up one way or another later on, so I'm biased towards doing whatever is simplest for now. Longer term I could see this being part of flex.

def date_picker(attribute, options = {})
raw_value = object.send(attribute) if object

append_to_option(options, :hint, @template.content_tag(:p, I18n.t("us_form_with.date_picker_format")))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pull in frontend improvements
3 participants