Skip to content

Commit

Permalink
UI: Make step content's width on steps wizard form configurable (#19)
Browse files Browse the repository at this point in the history
* Make step content's width on steps wizard form configurable

* Bump UI to 1.4.2
  • Loading branch information
ariefrahmansyah authored May 8, 2021
1 parent 425ee80 commit 7f250ce
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gojek/mlp-ui",
"version": "1.4.1",
"version": "1.4.2",
"private": true,
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mlp-ui",
"version": "1.4.1",
"version": "1.4.2",
"private": true,
"license": "Apache-2.0",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gojek/mlp-ui",
"version": "1.4.1",
"version": "1.4.2",
"license": "Apache-2.0",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EuiFlexGroup, EuiFlexItem } from "@elastic/eui";
import React from "react";
import { EuiFlexGroup, EuiFlexItem } from "@elastic/eui";

export const StepContent = ({ children, width = "75%" }) => (
<EuiFlexGroup direction="row" justifyContent="center">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const StepsWizardHorizontal = ({
<EuiSpacer size="l" />

<EuiFlexItem>
<StepContent>{steps[currentStep].children}</StepContent>
<StepContent width={steps[currentStep].width}>{steps[currentStep].children}</StepContent>
</EuiFlexItem>

<EuiSpacer size="l" />
Expand Down

0 comments on commit 7f250ce

Please sign in to comment.