Skip to content

Commit 0498ff0

Browse files
authored
Fix css and input validation (#39)
1 parent 8f8a735 commit 0498ff0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/lib/components/FormInput/FormInput.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ const FormInput = React.forwardRef(
162162
const validateField = (value) => {
163163
let valueToValidate = isNil(value) ? '' : String(value)
164164

165+
if (!valueToValidate && !required) return
166+
165167
let validationError = null
166168

167169
if (!isEmpty(validationRules)) {

src/lib/components/Wizard/WizardSteps/WizardSteps.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.wizard-steps {
66
background-color: $white;
77
min-width: 260px;
8-
margin-right: 1rem;
8+
margin-right: 2rem;
99

1010
&__indicator {
1111
display: inline-flex;
@@ -18,7 +18,7 @@
1818
height: 36px;
1919
}
2020

21-
&__item:not(:last-child) {
21+
& > *:not(:last-child) {
2222
margin-bottom: 10px;
2323
}
2424

0 commit comments

Comments
 (0)