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

Add sub text to eCR Summary & Document headers #2341

Merged
merged 5 commits into from
Aug 8, 2024

Conversation

angelathe
Copy link
Collaborator

PULL REQUEST

Summary

  • Add sub-header text below the eCR Summary and eCR Document headers (applies to both main page & Loading component)
  • Update snapshot test

Related Issue

Fixes #2179

Checklist

  • If this code affects the other scrum team, have they been notified? (In Slack, as reviewers, etc.)

@angelathe angelathe self-assigned this Aug 7, 2024
@@ -594,7 +614,7 @@ exports[`Snapshot test for EcrLoadingSkeleton should match snapshot 1`] = `
data-testid="gridContainer"
>
<div
class="grid-row"
class="grid-row margin-bottom-05"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fyi, I couldn't use gaps because it gets overruled by the display: block rule

@angelathe angelathe marked this pull request as ready for review August 7, 2024 23:49
@sarahtress
Copy link
Collaborator

@angelathe would you be able to shift up eCR Summary just slightly so it's in line with the top of the side nav?

Screenshot 2024-08-08 at 10 05 45 AM

Also you made the font size for this text correct to the designs (1rem), but that made me realize the font size is wrong everywhere else in the normal body text of the whole viewer (1.06rem). was staring at it for a while wondering if I was seeing things or if the text you added looked small. you think I should add this change as a separate ticket?

@angelathe
Copy link
Collaborator Author

@sarahtress Currently, I'm seeing that the top of the content box is aligned with the top of the side nav, does yours look different? (screenshot attached below)

Ooh also about the text sizes, yes, I think that would be better as a separate ticket if that's okay!

Screenshot 2024-08-08 at 08 23 53

@sarahtress
Copy link
Collaborator

@angelathe sorry I guess this isn't totally in the scope of the ticket either, but in the designs, I add some padding at the top of the side nav so that they look visually aligned:

Screenshot 2024-08-08 at 11 47 22 AM

problem is when they're technically aligned, the spacing built into the eCR Summary text makes them not visually look aligned

happy to also make this it's own ticket since I think it's more that I'm realizing this issue now, and less that you caused it with this ticket

@angelathe
Copy link
Collaborator Author

@sarahtress Ready for re-review!

@@ -45,3 +45,6 @@
width: 25%;
}

.padding-top-10px {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@BobanL Do you know what what this utility class should be named? There wasn't a 10px size when I looked at USWDS, just either 8px (padding-top-1) or 12px (padding-top-105)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess we could call it padding-top-1025 OR padding-top-1-25. I'm in favor of padding-top-1-25 since it's much easier to read.

@sarahtress
Copy link
Collaborator

@sarahtress Ready for re-review!

looks great thanks!

Copy link
Collaborator

@BobanL BobanL left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@angelathe angelathe added this pull request to the merge queue Aug 8, 2024
Merged via the queue into main with commit 75a876e Aug 8, 2024
11 checks passed
@angelathe angelathe deleted the angela/2179-subheader-text branch August 8, 2024 19:47
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.

Summary & Document sub-header text | eCR Viewer
3 participants