Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/audit/KAD-4008' into audit/KAD-4008
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbert-hernandez committed Jan 15, 2025
2 parents b30de8b + f930c1a commit f4274ad
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src/blocks/infobox/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3235,7 +3235,9 @@ function KadenceInfoBox(props) {
: 12
}
step={1}
reset={() => saveMediaStyle({ borderWidth: [0, 0, 0, 0], borderWidthUnit: 'px' })}
reset={() =>
saveMediaStyle({ borderWidth: [0, 0, 0, 0], borderWidthUnit: 'px' })
}
showUnit={true}
unit={mediaStyle[0].borderWidthUnit ?? 'px'}
onUnit={(value) => saveMediaStyle({ borderWidthUnit: value })}
Expand All @@ -3252,7 +3254,12 @@ function KadenceInfoBox(props) {
? 200
: 12
}
reset={() => saveMediaStyle({ borderRadius: [0, 15, 0, 15], borderRadiusUnit: 'px' })}
reset={() =>
saveMediaStyle({
borderRadius: [0, 15, 0, 15],
borderRadiusUnit: 'px',
})
}
showUnit={true}
unit={mediaStyle[0].borderRadiusUnit ?? 'px'}
onUnit={(value) => saveMediaStyle({ borderRadiusUnit: value })}
Expand Down
6 changes: 5 additions & 1 deletion src/blocks/infobox/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ function Save({ attributes, className }) {
}`}
>
<div className={'kadence-info-box-number-inner-container'}>
<RichText.Content className="kt-blocks-info-box-number" tagName={'div'} value={number.text ? number.text : ''} />
<RichText.Content
className="kt-blocks-info-box-number"
tagName={'div'}
value={number.text ? number.text : ''}
/>
</div>
</div>
);
Expand Down

0 comments on commit f4274ad

Please sign in to comment.