Skip to content

Commit b3a59bc

Browse files
chore(Wizard): updated demos per design (#11541)
* chore(Wizard): updated demos per design * Fixed height styling inpage demos
1 parent 0328e63 commit b3a59bc

File tree

6 files changed

+7
-14
lines changed

6 files changed

+7
-14
lines changed

packages/react-core/src/demos/examples/Wizard/InModal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export const WizardInModalDemo: React.FunctionComponent = () => (
4646
closeButtonAriaLabel="Close wizard"
4747
/>
4848
}
49-
height={400}
5049
>
5150
<WizardStep name="Information" id="wizard-step-1">
5251
<p>Step 1 content</p>

packages/react-core/src/demos/examples/Wizard/InModalWithDrawer.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
Drawer,
55
DrawerContent,
66
DrawerPanelContent,
7-
DrawerColorVariant,
87
DrawerHead,
98
DrawerActions,
109
DrawerCloseButton,
@@ -38,7 +37,7 @@ export const WizardModalWithDrawerDemo: React.FunctionComponent = () => {
3837
<Drawer isInline isExpanded={isDrawerExpanded} onExpand={onExpand}>
3938
<DrawerContent
4039
panelContent={
41-
<DrawerPanelContent widths={{ default: 'width_33' }} colorVariant={DrawerColorVariant.secondary}>
40+
<DrawerPanelContent widths={{ default: 'width_33' }}>
4241
<DrawerHead>
4342
<span tabIndex={isDrawerExpanded ? 0 : -1} ref={drawerRef}>
4443
Drawer content: {stepName}
@@ -86,7 +85,6 @@ export const WizardModalWithDrawerDemo: React.FunctionComponent = () => {
8685
descriptionId="wiz-modal-demo-description"
8786
/>
8887
}
89-
height={400}
9088
>
9189
<WizardStep body={{ hasNoPadding: true }} name="Information" id="wizard-step-1">
9290
{createStepContentWithDrawer('Information step')}

packages/react-core/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
DrawerCloseButton,
88
DrawerContent,
99
DrawerPanelContent,
10-
DrawerColorVariant,
1110
DrawerHead,
1211
Flex,
1312
Modal,
@@ -39,7 +38,7 @@ export const WizardModalWithDrawerInfoStepDemo: React.FunctionComponent = () =>
3938
<Drawer isInline isExpanded={isDrawerExpanded} onExpand={onExpand}>
4039
<DrawerContent
4140
panelContent={
42-
<DrawerPanelContent widths={{ default: 'width_33' }} colorVariant={DrawerColorVariant.secondary}>
41+
<DrawerPanelContent widths={{ default: 'width_33' }}>
4342
<DrawerHead>
4443
<span tabIndex={isDrawerExpanded ? 0 : -1} ref={drawerRef}>
4544
Drawer content: {stepName}
@@ -91,7 +90,6 @@ export const WizardModalWithDrawerInfoStepDemo: React.FunctionComponent = () =>
9190
descriptionId="wiz-modal-demo-description"
9291
/>
9392
}
94-
height={400}
9593
>
9694
<WizardStep body={{ hasNoPadding: true }} name="Information" id="wizard-step-1">
9795
{createStepContentWithDrawer('Information step')}

packages/react-core/src/demos/examples/Wizard/InPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrap
55
export const WizardFullPage: React.FunctionComponent = () => (
66
<React.Fragment>
77
<DashboardWrapper hasPageTemplateTitle>
8-
<PageSection type={PageSectionTypes.wizard}>
8+
<PageSection hasBodyWrapper={false} type={PageSectionTypes.wizard}>
99
<Wizard>
1010
<WizardStep name="Information" id="wizard-step-1">
1111
<p>Step 1 content</p>

packages/react-core/src/demos/examples/Wizard/InPageWithDrawer.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
DrawerCloseButton,
1111
DrawerContent,
1212
DrawerPanelContent,
13-
DrawerColorVariant,
1413
DrawerHead,
1514
Flex,
1615
Nav,
@@ -135,7 +134,7 @@ export const WizardFullPageWithDrawerDemo: React.FunctionComponent = () => {
135134
<Drawer isInline isExpanded={isDrawerExpanded} onExpand={onExpand}>
136135
<DrawerContent
137136
panelContent={
138-
<DrawerPanelContent widths={{ default: 'width_33' }} colorVariant={DrawerColorVariant.secondary}>
137+
<DrawerPanelContent widths={{ default: 'width_33' }}>
139138
<DrawerHead>
140139
<span tabIndex={isDrawerExpanded ? 0 : -1} ref={drawerRef}>
141140
Drawer content: {stepName}
@@ -180,7 +179,7 @@ export const WizardFullPageWithDrawerDemo: React.FunctionComponent = () => {
180179
<p>A demo of a wizard in a page.</p>
181180
</Content>
182181
</PageSection>
183-
<PageSection type={PageSectionTypes.wizard}>
182+
<PageSection hasBodyWrapper={false} type={PageSectionTypes.wizard}>
184183
<Wizard>
185184
<WizardStep body={{ hasNoPadding: true }} name="Information" id="wizard-step-1">
186185
{createStepContentWithDrawer('Information step')}

packages/react-core/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
DrawerContent,
1212
DrawerHead,
1313
DrawerPanelContent,
14-
DrawerColorVariant,
1514
Flex,
1615
Nav,
1716
NavItem,
@@ -135,7 +134,7 @@ export const WizardFullPageWithDrawerInfoStepDemo: React.FunctionComponent = ()
135134
<Drawer isInline isExpanded={isDrawerExpanded} onExpand={onExpand}>
136135
<DrawerContent
137136
panelContent={
138-
<DrawerPanelContent widths={{ default: 'width_33' }} colorVariant={DrawerColorVariant.secondary}>
137+
<DrawerPanelContent widths={{ default: 'width_33' }}>
139138
<DrawerHead>
140139
<span tabIndex={isDrawerExpanded ? 0 : -1} ref={drawerRef}>
141140
Drawer content: {stepName}
@@ -184,7 +183,7 @@ export const WizardFullPageWithDrawerInfoStepDemo: React.FunctionComponent = ()
184183
<p>A demo of a wizard in a page.</p>
185184
</Content>
186185
</PageSection>
187-
<PageSection type={PageSectionTypes.wizard} ß>
186+
<PageSection hasBodyWrapper={false} type={PageSectionTypes.wizard} ß>
188187
<Wizard>
189188
<WizardStep body={{ hasNoPadding: true }} name="Information" id="wizard-step-1">
190189
{createStepContentWithDrawer('Information step')}

0 commit comments

Comments
 (0)