Skip to content

Commit 4d88a04

Browse files
committed
feat(CC-batch-6): @kmcfaul review 7 updates
1 parent 3fe910c commit 4d88a04

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

packages/code-connect/components/Label/LabelNonStatus.figma.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import figma from '@figma/code-connect';
22
import { Label } from '@patternfly/react-core';
33

44
// Documentation for Label can be found at https://www.patternfly.org/components/label
5+
// TODO: DESIGN: Update status to be a prop
56

67
figma.connect(
78
Label,
89
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=2800-609',
910
{
1011
props: {
12+
status: 'info', // TODO: DESIGN: Update status to be a prop
1113
// string
1214
labelText: figma.string('Text'),
1315

@@ -38,13 +40,16 @@ figma.connect(
3840
Cyan: 'teal', // TODO: DESIGN: Update to teal
3941
Gold: 'yellow' // TODO: DESIGN: Update to yellow
4042
}),
41-
variant: figma.enum('Type', { Outlined: 'outline' }),
42-
43-
children: figma.children('*')
43+
variant: figma.enum('Type', { Outlined: 'outline' })
4444
},
4545
example: (props) => (
46-
<Label isCompact={props.isCompact} isEditable={props.isEditable} color={props.color} variant={props.variant}>
47-
{props.children}
46+
<Label
47+
isCompact={props.isCompact}
48+
status={props.status}
49+
isEditable={props.isEditable}
50+
color={props.color}
51+
variant={props.variant}
52+
>
4853
{props.labelText}
4954
</Label>
5055
)

0 commit comments

Comments
 (0)