Skip to content

Commit

Permalink
add more spacing to icon
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcfaul committed Sep 25, 2024
1 parent dc4b967 commit 1090cda
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
20 changes: 13 additions & 7 deletions packages/react-core/src/components/Card/examples/CardTile.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Card, CardHeader, CardBody, Gallery } from '@patternfly/react-core';
import { Card, CardHeader, CardBody, Gallery, Flex } from '@patternfly/react-core';
import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';

export const CardTile: React.FunctionComponent = () => {
Expand All @@ -25,8 +25,10 @@ export const CardTile: React.FunctionComponent = () => {
isHidden: true
}}
>
<PlusIcon />
<b>Tile header</b>
<Flex>
<PlusIcon />
<b>Tile header</b>
</Flex>
</CardHeader>
<CardBody>Tile content and description</CardBody>
</Card>
Expand All @@ -41,8 +43,10 @@ export const CardTile: React.FunctionComponent = () => {
isHidden: true
}}
>
<PlusIcon />
<b>Tile header</b>
<Flex>
<PlusIcon />
<b>Tile header</b>
</Flex>
</CardHeader>
<CardBody>Tile content and description</CardBody>
</Card>
Expand All @@ -57,8 +61,10 @@ export const CardTile: React.FunctionComponent = () => {
isHidden: true
}}
>
<PlusIcon />
<b>Tile header (disabled)</b>
<Flex>
<PlusIcon />
<b>Tile header (disabled)</b>
</Flex>
</CardHeader>
<CardBody>Tile content and description</CardBody>
</Card>
Expand Down
20 changes: 13 additions & 7 deletions packages/react-core/src/components/Card/examples/CardTileMulti.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Card, CardHeader, CardBody, Gallery } from '@patternfly/react-core';
import { Card, CardHeader, CardBody, Gallery, Flex } from '@patternfly/react-core';
import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';

export const CardTileMulti: React.FunctionComponent = () => {
Expand Down Expand Up @@ -38,8 +38,10 @@ export const CardTileMulti: React.FunctionComponent = () => {
isHidden: true
}}
>
<PlusIcon />
<b>Tile header</b>
<Flex>
<PlusIcon />
<b>Tile header</b>
</Flex>
</CardHeader>
<CardBody>Tile content and description</CardBody>
</Card>
Expand All @@ -53,8 +55,10 @@ export const CardTileMulti: React.FunctionComponent = () => {
isHidden: true
}}
>
<PlusIcon />
<b>Tile header</b>
<Flex>
<PlusIcon />
<b>Tile header</b>
</Flex>
</CardHeader>
<CardBody>Tile content and description</CardBody>
</Card>
Expand All @@ -68,8 +72,10 @@ export const CardTileMulti: React.FunctionComponent = () => {
isHidden: true
}}
>
<PlusIcon />
<b>Tile header (disabled)</b>
<Flex>
<PlusIcon />
<b>Tile header (disabled)</b>
</Flex>
</CardHeader>
<CardBody>Tile content and description</CardBody>
</Card>
Expand Down

0 comments on commit 1090cda

Please sign in to comment.