Skip to content

Commit 14f289b

Browse files
committed
feat(CC-batch-8): updated required props
1 parent 655beb5 commit 14f289b

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

packages/code-connect/components/Slider/Slider.figma.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ figma.connect(
1414

1515
// enum
1616
state: figma.enum('State', {
17-
Default: 'default',
17+
Default: undefined,
1818
Active: 'active',
1919
Disabled: 'disabled',
2020
Hover: 'hover'
2121
}),
22+
isDisabled: figma.enum('State', { Disabled: true }),
2223
type: figma.enum('Type', {
2324
Continuous: 'continuous',
2425
Discrete: 'discrete'
@@ -27,10 +28,10 @@ figma.connect(
2728
example: (props) => (
2829
// Documentation for Slider can be found at https://www.patternfly.org/components/slider
2930
<Slider
30-
areCustomStepsContinuous={props.type === 'continuous'}
31-
isDisabled={props.state === 'disabled'}
31+
areCustomStepsContinuous={props.type}
32+
isDisabled={props.isDisabled}
3233
showBoundaries={props.minmaxValues}
33-
showTicks={props.type === 'discrete'}
34+
showTicks={props.type}
3435
/>
3536
)
3637
}

packages/code-connect/components/Tabs/HorizontalSubTabs.figma.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ figma.connect(
88
props: {
99
children: figma.children('*'),
1010
isBox: figma.enum('Type', {
11-
Boxed: false,
11+
Boxed: true,
1212
'Boxed Light': true
1313
})
1414
},

packages/code-connect/components/Tabs/VerticalTabs.figma.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ figma.connect(
88
props: {
99
children: figma.children('*'),
1010
isBox: figma.enum('Type', {
11-
Boxed: false,
11+
Boxed: true,
1212
'Boxed Light': true,
1313
'Inset Boxed': true
1414
}),

packages/code-connect/components/ToggleGroup/ToggleGroup.figma.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ figma.connect(
88
props: {
99
// enum
1010
size: figma.enum('Size', {
11-
Default: 'default',
11+
Default: undefined,
1212
Compact: 'compact'
1313
}),
1414

0 commit comments

Comments
 (0)