Skip to content

Commit

Permalink
add space to required field
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrizmaselli committed Sep 23, 2024
1 parent 6f8e751 commit d6af858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/inputs/StyleguideInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class StyleguideInput extends Component {

const disabled = !!address[field.name].disabled

const valid = address[field.name].valid === false ? false : true
const valid = address[field.name].valid !== false

const loading =
loadingProp != null ? loadingProp : address[field.name].loading
Expand Down Expand Up @@ -144,7 +144,7 @@ class StyleguideInput extends Component {
!valid ? 'vtex-address-form__field-invalid' : ''
} ${!address[field.name].value ? 'vtex-address-form__field-empty' : ''} ${
this.state.isFocused ? 'vtex-address-form__field-focused' : ''
}${field.required ? 'vtex-address-form__field-required' : ''}`
} ${field.required ? 'vtex-address-form__field-required' : ''}`

if (field.name === 'postalCode') {
return (
Expand Down

0 comments on commit d6af858

Please sign in to comment.