-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Icon): add new icon sizes for penta (#10030)
* feat(Icon): add new icon sizes for penta * chore(Icon): refactor icon size tests into single forEach
- Loading branch information
1 parent
719f078
commit bc37bcc
Showing
10 changed files
with
151 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/react-core/src/components/Icon/examples/BodyIconSizes.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import { Icon } from '@patternfly/react-core'; | ||
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon'; | ||
|
||
export const BodyIconSizes: React.FunctionComponent = () => ( | ||
<React.Fragment> | ||
<Icon size="bodySm"> | ||
<PlusCircleIcon /> | ||
</Icon> | ||
<Icon size="bodyDefault"> | ||
<PlusCircleIcon /> | ||
</Icon> | ||
<Icon size="bodyLg"> | ||
<PlusCircleIcon /> | ||
</Icon> | ||
</React.Fragment> | ||
); |
26 changes: 26 additions & 0 deletions
26
packages/react-core/src/components/Icon/examples/HeadingIconSizes.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
import { Icon } from '@patternfly/react-core'; | ||
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon'; | ||
|
||
export const HeadingIconSizes: React.FunctionComponent = () => ( | ||
<React.Fragment> | ||
<Icon size="headingSm"> | ||
<PlusCircleIcon /> | ||
</Icon> | ||
<Icon size="headingMd"> | ||
<PlusCircleIcon /> | ||
</Icon> | ||
<Icon size="headingLg"> | ||
<PlusCircleIcon /> | ||
</Icon> | ||
<Icon size="headingXl"> | ||
<PlusCircleIcon /> | ||
</Icon> | ||
<Icon size="heading_2xl"> | ||
<PlusCircleIcon /> | ||
</Icon> | ||
<Icon size="heading_3xl"> | ||
<PlusCircleIcon /> | ||
</Icon> | ||
</React.Fragment> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters