Skip to content

Leslie/Make style adjustments #60

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

Merged
merged 1 commit into from
Jan 24, 2025
Merged

Conversation

LeslieJAnderson
Copy link
Contributor

@LeslieJAnderson LeslieJAnderson commented Jan 23, 2025

Ticket

Changes

Tweaked styling per instructions; results tested in platform-test-rails

Context for reviewers

Links to initial commits to be copied in the ticket. Was told to bring over all the style stuff except for anything pfml specific.

Testing

Since the text isn't long to demonstrate the proper wrapping, etc, may be a silly screenshot, but demonstrates that the changes don't break anything.

Screenshot 2025-01-23 at 3 49 00 PM

@LeslieJAnderson LeslieJAnderson force-pushed the leslie/bring-in-style-changes branch from 12f0484 to 7c9ed9b Compare January 23, 2025 20:53
@LeslieJAnderson LeslieJAnderson marked this pull request as ready for review January 23, 2025 20:58
Copy link
Contributor

@lorenyu lorenyu left a comment

Choose a reason for hiding this comment

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

This looks fine to me, but could you help me understand what you did to test? I'm less familiar with the dev workflow for this template. Which pages did you view to see the screenshot? And again for my own understanding, curious what the before / after is, like what does that page look like before you made these changes?

Also, for future changes you can make them in platform-test in the rails-app folder, and if you do so that'll push the changes to a PR environment automatically so the reviewer can take a look themselves too.

Process nits:

  • I updated the PR description so that the description isn't all in the blockquote style (i.e. removed the ">" prefix)
  • Don't forget to change the PR title to something that follows git commit style guidelines (imperative voice, sentence case) and is understandable to someone with less context ("bring in style changes" doesn't really say what the changes do)

@LeslieJAnderson
Copy link
Contributor Author

LeslieJAnderson commented Jan 24, 2025

Ahha, my bad. I didn't realize those changes were in platform-test already.

I pushed up this code there, too.

You can test it here: https://p-167-app-rails-dev-1853701493.us-east-1.elb.amazonaws.com/users/registrations/applicant

I did the following tests on that page by manually changing the label and hint text to make it longer for wrapping purposes, and merely toggling the changes on/off in the console to take screenshots.

As for walking through the changes:

The wrapping of label and legend text. You can note the difference in the Email label (exaggeratedly long in the screenshot)

Here's what it looks like before:
Screenshot 2025-01-23 at 6 48 40 PM

And here it is after:
Screenshot 2025-01-23 at 6 48 51 PM

The.usa-form--large changes. You can note the difference in the input widths.
Before:
Screenshot 2025-01-23 at 7 01 51 PM

After: Screenshot 2025-01-23 at 7 01 59 PM

I'm not sure how to get you a screenshot of the changes to .usa-legend--large -- .usa-legend only shows up in platform-test/app-rails/app/helpers/uswds_form_builder.rb and I don't see usa-legend--large anywhere. Not sure if the --large is appended dynamically anywhere, or if this is just being brought over for future utility.

For the .usa-hint text-wrap change, you can note the difference in how the password hint text wraps.
Before:
Screenshot 2025-01-23 at 7 08 13 PM

After:
Screenshot 2025-01-23 at 7 08 22 PM

I think that's roughly all the changes? There are some bottom-margin tweaks for lists within .usa-hints, but I troubled finding any in the wild. Those shouldn't be dramatic changes.

@LeslieJAnderson LeslieJAnderson changed the title Leslie/bring in style changes Leslie/Import label, legend, and form styles from pfml-starter-kit Jan 24, 2025
@LeslieJAnderson
Copy link
Contributor Author

I also updated the PR title -- I'm lacking much of the context around this myself, so I hope the super literal title is okay

@lorenyu
Copy link
Contributor

lorenyu commented Jan 24, 2025

Looks good to me, feel free to merge. re: commit title, rather than reference another repo, you can look at the commit message from that repo and just use that. For example

"Increase form max-width"

In this case it's not even that important so I'm also ok with something like "Make style adjustments"

@LeslieJAnderson LeslieJAnderson changed the title Leslie/Import label, legend, and form styles from pfml-starter-kit Leslie/Make style adjustments Jan 24, 2025
@LeslieJAnderson LeslieJAnderson merged commit fc56ff8 into main Jan 24, 2025
3 checks passed
@LeslieJAnderson LeslieJAnderson deleted the leslie/bring-in-style-changes branch January 24, 2025 15:09
@lorenyu
Copy link
Contributor

lorenyu commented Jan 24, 2025

@LeslieJAnderson for next time, when you merge the PR make sure the commit message follows git commit message guidelines. It should just follow the PR title, so instead of "pulled main and squashed commits" it should be "Make style adjustments" (don't include your name in the PR title or commit message, that's redundant since your name shows up as metadata)

@include u-measure(5);
padding-top: units(2);
margin-top: 0;
margin-bottom: units(1);
Copy link
Contributor

Choose a reason for hiding this comment

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

@LeslieJAnderson from latest in PFML Starter Kit, we only add the margin-bottom if not displaying an error I think.

Was there a reason to not do that here?

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.

label and legend text balance & .usa-hint
3 participants