Skip to content

Commit 54efcbe

Browse files
authored
Merge pull request #323 from devtron-labs/fix/icon-overrides
fix: close icon override
2 parents f111df9 + dc6215f commit 54efcbe

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "0.3.15",
3+
"version": "0.3.16",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Assets/Icon/ic-close.svg

Lines changed: 2 additions & 2 deletions
Loading

src/Shared/Services/ToastManager/constants.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ReactComponent as ICSuccess } from '@Icons/ic-success.svg'
55
import { ReactComponent as ICError } from '@Icons/ic-error.svg'
66
import { ReactComponent as ICWarning } from '@Icons/ic-warning.svg'
77
import { ReactComponent as ICLocked } from '@Icons/ic-locked.svg'
8-
import { ReactComponent as ICClose } from '@Icons/ic-close.svg'
8+
import { ReactComponent as ICCross } from '@Icons/ic-cross.svg'
99
import { Button, ButtonStyleType, ButtonVariantType } from '@Shared/Components'
1010
import { ComponentSizeType } from '@Shared/constants'
1111
import { ToastProps, ToastVariantType } from './types'
@@ -22,7 +22,7 @@ export const TOAST_BASE_CONFIG: ToastContainerProps = {
2222
closeButton: ({ closeToast }) => (
2323
<div className="custom-toast__close-btn">
2424
<Button
25-
icon={<ICClose className="fcn-0" />}
25+
icon={<ICCross className="fcn-0" />}
2626
onClick={closeToast}
2727
dataTestId="close-toast"
2828
ariaLabel="Close toast"

src/Shared/Services/ToastManager/toastManager.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
&__close-btn {
7070
button {
7171
svg {
72-
use {
72+
path {
7373
fill: var(--N0) !important;
7474
}
7575
}

0 commit comments

Comments
 (0)