Skip to content

Commit

Permalink
fix(hero): default values for non boolean are set by default not defa…
Browse files Browse the repository at this point in the history
…ultValue
  • Loading branch information
ichim-david committed Jun 27, 2024
1 parent 6511562 commit 608ec21
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/Blocks/Hero/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const HeroBlockSchema = ({ data }) => {
title: 'Align',
widget: 'align',
actions: ['left', 'right'],
defaultValue: 'left',
default: 'left',
},
height: {
title: 'Height',
Expand Down Expand Up @@ -140,7 +140,7 @@ export const stylingSchema = (props) => {
widget: 'align',
actions: Object.keys(ALIGN_INFO_MAP),
actionsInfoMap: ALIGN_INFO_MAP,
defaultValue: 'has--bg--center',
default: 'has--bg--center',
},
backgroundVariant: {
title: 'Background theme',
Expand All @@ -162,12 +162,13 @@ export const stylingSchema = (props) => {
['center', 'Center'],
['end', 'Bottom'],
],
default: 'center',
},
textAlign: {
title: 'Text align',
widget: 'align',
actions: ['left', 'center', 'right'],
defaultValue: 'left',
default: 'left',
},
textVariant: {
title: 'Text theme',
Expand Down Expand Up @@ -199,7 +200,7 @@ export const stylingSchema = (props) => {
title: 'Button align',
widget: 'align',
actions: ['left', 'center', 'right'],
defaultValue: 'left',
default: 'left',
},
},
required: [],
Expand Down

0 comments on commit 608ec21

Please sign in to comment.