Skip to content

Commit

Permalink
Fix close icon for flash not displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Piatek committed Sep 22, 2022
1 parent 0753305 commit c983380
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/Flash/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,8 @@ const Flash = ({ type, content }) => {
<div className={`${FLASH_BG_COLOR[type]} p-32 flex align-center rounded shadow-container-subtle`}>
{withIcons[type] && <Icon name={withIcons[type]} color={iconColor[type]} size="1.5rem" additionalCSS="mr-16 self-baseline" />}
<p className={`ui-flash-text ${FLASH_TEXT_COLOR[type]}`} dangerouslySetInnerHTML={{ __html: safeContent }} />
<button type="button" className="p-0 ml-auto self-start" onClick={closeFlash}>
<svg className="h-24 w-24 transition-colors ui-icon-cool-black">
<use xlinkHref="#sprite-close"></use>
</svg>
<button type="button" className="p-0 ml-auto self-start focus:outline-none" onClick={closeFlash}>
<Icon name="icon-gui-close" color={iconColor[type]} size="1.5rem" additionalCSS="transition-colors" />
</button>
</div>
</div>
Expand Down

0 comments on commit c983380

Please sign in to comment.