font weight for description element
This commit is contained in:
parent
b92132db09
commit
b2fd213fa3
@ -64,14 +64,17 @@ const DescriptionElement: React.FC<DescriptionElementProps> = ({
|
||||
|
||||
// Without icon: render styled text description
|
||||
// Background color is controlled via CSS Styles tab (backgroundColor property)
|
||||
// fontWeight from CSS Styles tab is applied to both title and text
|
||||
const fontWeight = element.fontWeight || 'bold';
|
||||
|
||||
return (
|
||||
<div className={className} style={style}>
|
||||
<div className='p-4'>
|
||||
<p
|
||||
className='font-bold'
|
||||
style={{
|
||||
fontSize: element.descriptionTitleFontSize || '24px',
|
||||
color: element.descriptionTitleColor || '#ffffff',
|
||||
fontWeight,
|
||||
...titleFontStyle,
|
||||
}}
|
||||
>
|
||||
@ -82,6 +85,7 @@ const DescriptionElement: React.FC<DescriptionElementProps> = ({
|
||||
style={{
|
||||
fontSize: element.descriptionTextFontSize || '16px',
|
||||
color: element.descriptionTextColor || '#ffffff',
|
||||
fontWeight,
|
||||
...textFontStyle,
|
||||
}}
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user