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
|
// Without icon: render styled text description
|
||||||
// Background color is controlled via CSS Styles tab (backgroundColor property)
|
// 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 (
|
return (
|
||||||
<div className={className} style={style}>
|
<div className={className} style={style}>
|
||||||
<div className='p-4'>
|
<div className='p-4'>
|
||||||
<p
|
<p
|
||||||
className='font-bold'
|
|
||||||
style={{
|
style={{
|
||||||
fontSize: element.descriptionTitleFontSize || '24px',
|
fontSize: element.descriptionTitleFontSize || '24px',
|
||||||
color: element.descriptionTitleColor || '#ffffff',
|
color: element.descriptionTitleColor || '#ffffff',
|
||||||
|
fontWeight,
|
||||||
...titleFontStyle,
|
...titleFontStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@ -82,6 +85,7 @@ const DescriptionElement: React.FC<DescriptionElementProps> = ({
|
|||||||
style={{
|
style={{
|
||||||
fontSize: element.descriptionTextFontSize || '16px',
|
fontSize: element.descriptionTextFontSize || '16px',
|
||||||
color: element.descriptionTextColor || '#ffffff',
|
color: element.descriptionTextColor || '#ffffff',
|
||||||
|
fontWeight,
|
||||||
...textFontStyle,
|
...textFontStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user