Skip to content

Commit ea90d2f

Browse files
committed
update card demo to use status labels & fix import in tabs demo
1 parent cd2652e commit ea90d2f

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

packages/react-core/src/demos/Tabs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ section: components
55

66
import { Fragment, useCallback, useRef, useState } from 'react';
77
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
8-
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-information-fill-icon';
8+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
99
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
1010
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
1111
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';

packages/react-core/src/demos/examples/Card/CardStatus.tsx

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ import {
2222
Icon
2323
} from '@patternfly/react-core';
2424
import { Table, Thead, Tbody, Tr, Th, Td, ExpandableRowContent } from '@patternfly/react-table';
25-
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-notification-fill-icon';
2625
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-check-circle-fill-icon';
2726
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-error-fill-icon';
28-
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-warning-fill-icon';
2927
import t_global_text_color_subtle from '@patternfly/react-tokens/dist/esm/t_global_text_color_subtle';
3028

3129
export const CardStatus: React.FunctionComponent = () => {
@@ -206,21 +204,11 @@ export const CardStatus: React.FunctionComponent = () => {
206204
<FlexItem spacer={{ default: 'spacerMd' }}>
207205
<span>Notifications</span>
208206
</FlexItem>
209-
<Label color="red" icon={<RhUiErrorFillIcon />}>
210-
1
211-
</Label>
212-
<Label color="orange" icon={<RhUiWarningFillIcon />}>
213-
3
214-
</Label>
215-
<Label color="green" icon={<RhUiCheckCircleFillIcon />}>
216-
3
217-
</Label>
218-
<Label color="blue" icon={<RhUiErrorFillIcon />}>
219-
3
220-
</Label>
221-
<Label color="green" icon={<RhUiNotificationFillIcon />}>
222-
3
223-
</Label>
207+
<Label status="danger">1</Label>
208+
<Label status="warning">3</Label>
209+
<Label status="success">3</Label>
210+
<Label status="danger">3</Label>
211+
<Label status="info">3</Label>
224212
</Flex>
225213
);
226214

0 commit comments

Comments
 (0)