Skip to content

Commit 4af32c7

Browse files
reflect the spec
1 parent f5db4ef commit 4af32c7

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

src/scripts/Notification.tsx

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,15 @@ export const Notification: FC<NotificationProps> = (props) => {
6767
<div className={alertClassNames} role='alert' {...pprops}>
6868
{alt ? <span className='slds-assistive-text'>{alt}</span> : undefined}
6969
{onClose ? (
70-
type === 'toast' ? (
70+
<div className='slds-notify__close'>
7171
<Button
72-
className='slds-notification__close slds-button_icon-inverse'
73-
type='icon-container'
72+
type='icon-inverse'
7473
icon='close'
74+
size={type === 'toast' ? undefined : 'small'}
7575
alt='Close'
7676
onClick={onClose}
7777
/>
78-
) : (
79-
<div className='slds-notify__close'>
80-
<Button
81-
type='icon-inverse'
82-
icon='close'
83-
size='small'
84-
alt='Close'
85-
onClick={onClose}
86-
/>
87-
</div>
88-
)
78+
</div>
8979
) : undefined}
9080
{iconEl}
9181
{type === 'toast' ? (

0 commit comments

Comments
 (0)