-
Notifications
You must be signed in to change notification settings - Fork 5
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] Heading #175
[Component] Heading #175
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.
Nice, dynamic components!
@meissadia |
Done ✅
Assuming this would be changing the classname from "superheading" to "displayheading" or similar? It seems like a small change in the DS as there are only two places that reference "superheading". As for the downstream implications, replacing the "superheading" class would break styles for any apps that rely on it. Since it would be a breaking change this would require a new major version release of the DS library. Alternatively we could start a transition phase by duplicating the "superheading" styles as "displayheading", updating the DS docs page to prefer to the new classname, and maybe add a warning that the "superheading" class will be deprecated in future versions of the DS. |
@meissadia - Since “Heading with icon” is included on the Design System page for “Headings” we should consider including it here. Or do we currently include it somewhere else in the Storybook library? In the CFPB Design System we include “Heading with icon” on both the “Headings” page and on the “Iconography” page. |
Can do. I think it would stay in the "Headings" section since it's a variation on how the heading element is composed. And I don't see it on the Iconography. I do see the Icons with text section, which could be implemented as it's own component and could help solve the Consistent Icon/Text spacing issue. Question: Should our implementation be the whole meta header or just the "heading" (that is implemented in the DS as an anchor element) that includes an icon? |
17ecfde
to
dfa7c17
Compare
|
3ed90b8
to
0838d62
Compare
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
We should include the Eyebrow and the Slug since they are standard components and could come up as we build out more pages for SBL. The Slug is mainly used for sidebar content headings. We could handle Icons + Text as a separate PR if you'd like. I would like to discuss that one in more detail but I don't want to hold up the rest of this PR.
@meissadia What is the “.a-heading__icon”pattern that is referenced in the implementation details? Is this an icon next to an Avenir Next 18px Medium heading? Since this doesn’t use the H4 element does it not get the mobile styling for an H4? In terms of whether we should add it to the React component library now I’d say that we should but hold off until after we have the naming discussion in the DS repo. Or we can wait for a known use case in the SBL app. Whichever of these things happens first. |
Per conversation with Natalia this a.m.:
|
f16f779
to
8b1e4ad
Compare
|
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 left some comments in a separate post. Just minor content edits.
…ding, slug heading
8b1e4ad
to
70b3ba0
Compare
@meissadia |
@meissadia |
@meissadia |
Closes #161
Changes
h1
-h5
elementsHow to test this PR
Screenshots
Updated: Sept 29
Sidebar
Overview
Icons with Text (live preview) - (On the Iconography page)
Notes
Heading with icon
variant as that was not targeted in [Bug] Chromatic github action fails #167slug
,eyebrow
andsuper
because I hadn't realized these were not targeted in [Bug] Chromatic github action fails #167 until after they were already complete.