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

fix(demos): fix typography on demo pages #1083

Closed
wants to merge 1 commit into from

Conversation

AdamJ
Copy link
Member

@AdamJ AdamJ commented May 8, 2019

Applies the Overpass font family from PatternFly to the demo pages.

This will be able to be removed once PatternFly utilizes Red Hat typography.

fixes issue #1080

@@ -192,6 +192,7 @@ class PageLayoutDefaultNav extends React.Component {
isManagedSidebar
skipToContent={PageSkipToContent}
breadcrumb={PageBreadcrumb}
className="pf4-site-demo-typography"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Anything under _repos will get overwritten when newer patternfly-react and core versions are pulled in. So this would only be a temporary solution. Perhaps we can add a class identifier upstream?

Copy link
Member Author

Choose a reason for hiding this comment

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

@jschuler this is really only necessary until PatternFly moves over to using the Red Hat typography (which will then match the rest of PatternFly.org). I don't know the timeline for that (I couldn't find an issue in the patternfly/patternfly-next repo), but it probably wouldn't make sense to put an identifier upstream.

Copy link
Member

@christiemolloy christiemolloy May 13, 2019

Choose a reason for hiding this comment

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

@mindreeper2420 there is a PR up in pf next currently that adds an option to use the new font family: patternfly/patternfly#1813 .. I dont know how long until it will be merged but I can check with @mcoker

@christiemolloy
Copy link
Member

@mindreeper2420 theres a decent amount of issues with these demos where they're pulling in website styling, i.e. the blue border on the nav, and the padding around the main section areas.

Screen Shot 2019-05-13 at 2 19 31 PM

@AdamJ
Copy link
Member Author

AdamJ commented May 13, 2019

@christiemolloy I started to notice those other issues as well. I'm thinking that it'd be better to both wait for the PatternFly PR to be merged, and then update various items with PatternFly site classes (either a whole-site wrapper class, or individual ones on elements). Either that, or we could write site-specific components.

@AdamJ
Copy link
Member Author

AdamJ commented May 20, 2019

Closing, as the work for updating PatternFly to use Red Hat fonts has begun, nullifying the need for this.

@AdamJ AdamJ closed this May 20, 2019
@AdamJ AdamJ deleted the issue-1080 branch May 20, 2019 16:51
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.

3 participants