Skip to content

Commit

Permalink
chore(docs): Update pf logos in masthead and full page demos (#9348)
Browse files Browse the repository at this point in the history
* chore(docs): Update pf logos in masthead and full page demos

* fix demo app
  • Loading branch information
tlabaj authored Jul 12, 2023
1 parent 5f71bc2 commit 57c9ada
Show file tree
Hide file tree
Showing 17 changed files with 125 additions and 176 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ propComponents: ['Masthead', 'MastheadToggle', 'MastheadMain', 'MastheadBrand',

import BarsIcon from '@patternfly/react-icons/dist/js/icons/bars-icon';
import { Link } from '@reach/router';
import pfIcon from './pf-logo-small.svg';
import pfIcon from './pf-logo.svg';

`Masthead` should contain the following components to maintain proper layout and formatting: `MastheadToggle`, `MastheadMain`, and `MastheadContent`.

Expand Down Expand Up @@ -210,10 +210,10 @@ import BarsIcon from '@patternfly/react-icons/dist/js/icons/bars-icon';

```ts
import React from 'react';
import { Masthead, MastheadToggle, MastheadMain, MastheadBrand, MastheadContent, Button } from '@patternfly/react-core';
import { Masthead, MastheadToggle, MastheadMain, MastheadBrand, MastheadContent, Button, Brand } from '@patternfly/react-core';
import BarsIcon from '@patternfly/react-icons/dist/js/icons/bars-icon';
import { Link } from '@reach/router';
import pfIcon from './pf-logo-small.svg';
import pfIcon from './pf-logo.svg';

<Masthead id="icon-router-link">
<MastheadToggle>
Expand All @@ -223,7 +223,7 @@ import pfIcon from './pf-logo-small.svg';
</MastheadToggle>
<MastheadMain>
<MastheadBrand component={props => <Link {...props} to="#" />}>
<img src={pfIcon} alt="Patterfly Logo" />
<Brand src={pfIcon} alt="PatternFly" heights={{ default: '36px' }} />
</MastheadBrand>
</MastheadMain>
<MastheadContent>
Expand Down

This file was deleted.

28 changes: 28 additions & 0 deletions packages/react-core/src/components/Masthead/examples/pf-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/react-core/src/demos/Masthead.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import ThIcon from '@patternfly/react-icons/dist/esm/icons/th-icon';
import QuestionCircleIcon from '@patternfly/react-icons/dist/esm/icons/question-circle-icon';
import imgAvatar from '@patternfly/react-core/src/components/Avatar/examples/avatarImg.svg';
import pfIcon from './Card/pf-logo-small.svg';
import pfLogo from './assets/pf-logo.svg';
import { Link } from '@reach/router';

## Demos
Expand Down
Loading

0 comments on commit 57c9ada

Please sign in to comment.