-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Component] Text introduction #193
Conversation
✅ Deploy Preview for cfpb-design-system-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@meissadia
I still need to review the Text introduction as a component. The review below is for the Lead paragraph and Paragraph.
Lead paragraph
- Change placeholder for lead paragraph to:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Paragraph
- Change placeholder for paragraph to:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore.
Global Storybook style:
- For paragraph text all Storybook pages (global) correct the line height. It is currently set to 24px. It should be 22px to match the paragraph styling.
- Change text color to CFPB Black (#101820) - It is currently set to Gray - #2E3438
Is this the current spacing at desktop?
<h1>
top margin: 0px; bottom-margin: 15px<div class="lead-paragraph">
top-margin: 30px; bottom-margin: 18.33px<p>
top margin: 0px; bottom-margin: 15px- Margin between H1 and Lead Paragraph: 30-px; Lead paragraph and Paragraph: 18.33px; Paragraph and Link: 15px
What is the spacing at mobile?
Additional thoughts
- Where does the 60px margin above the Heading 1 come from? I don't see it in the spacing for the individual Heading 1 component.
- In looking at the website implementation the space above the Text introduction appears to be 45px
- The Heading 1 component has a bottom margin of 15px that is being overruled by the 30px top margin from the Text introduction. Am I interpreting this correctly?
Current spacing on desktop (with mobile spacing in perens)
|
Re: Additional thoughts
|
Re: Global Storybook style:
This change would overwrite the styles for DS elements (ex: TextIntroduction's |
Tested all functionality and tests. LGTM! |
7e190ff
to
4a94867
Compare
Requesting re-review:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@meissadia
Thanks for posting these changes.
- The "Lead paragraph" within the "Paragraph" component page includes the top-margin of 30px. Is this because it's pulling in from the existing state in the CFPB DS? If so doesn't the DS also include a bottom-margin of 18.33px? Are we pulling in the DS lead paragraph or is our version modified?
- The left navigation section is showing up with a light green background in the deploy preview. Can we change it back to white?
- Will the 45px of space above the Text introduction component come from the parent page element?
- Can we add the Text introduction component to the CFPB Design System and then connect it back to DSR? I posted an image with spacing specs here: Inconsistent margin in text introduction at desktop sizes design-system#1772 (comment)
@meissadia Can you show these combinations:
|
9986579
to
ed7840b
Compare
ed7840b
to
2b21d79
Compare
Next up:
|
@meissadia Here's the text I'd like to use: Heading 1Lead paragraph lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.Descriptive paragraph lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore. |
fix: Remove extraneous props for flushing tests: Update tests to use new test id
03c8d9c
to
70f636a
Compare
Closes #158
Closes #157
Closes #162
Sorry for the scope creep here....
Changes
lead-paragraph
reflects the removal of top margin via the DS updatelight/dark
theme (this was added as a nice-to-have, was never requested)line-height: 22px
without interfering with the component story styles (ex. Lead paragraph displays withline-height: 27.5px
)How to test this PR
Screenshots