Skip to content

Commit b17a06c

Browse files
committed
* alert: enhance content handling by adding className to CustomContent component.
1 parent 8edca11 commit b17a06c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/alert/src/component/alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function Alert({
3232
return (
3333
<div className={classes('alert', className)} style={style} {...others}>
3434
<Icon icon={icon} className={classes('alert-icon', iconClass)} />
35-
{typeof content !== 'string' ? <CustomContent content={content} /> : (
35+
{typeof content !== 'string' ? <CustomContent className={classes('alert-content', contentClass)} content={content} /> : (
3636
<div className={classes('alert-content', contentClass)}>
3737
{typeof heading !== 'string' ? <CustomContent content={heading} /> : (heading && <div className="alert-heading">{heading}</div>)}
3838
<div className="alert-text">{content}</div>

0 commit comments

Comments
 (0)