From 6a39ae981dee239087c38193b6ccdf759cdef8df Mon Sep 17 00:00:00 2001 From: Alex Nicholls Date: Wed, 11 Mar 2020 16:13:24 -0700 Subject: [PATCH] fix(toast): Fix toast icon size after button refactor --- modules/toast/react/lib/Toast.tsx | 3 +-- modules/toast/react/package.json | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/toast/react/lib/Toast.tsx b/modules/toast/react/lib/Toast.tsx index e3da02983b..43fda54aa2 100644 --- a/modules/toast/react/lib/Toast.tsx +++ b/modules/toast/react/lib/Toast.tsx @@ -5,7 +5,6 @@ import {SystemIcon} from '@workday/canvas-kit-react-icon'; import {checkIcon} from '@workday/canvas-system-icons-web'; import {CanvasSystemIcon} from '@workday/design-assets-types'; import {TransformOrigin} from '@workday/canvas-kit-react-common'; -import {IconButtonSize} from '@workday/canvas-kit-react-button'; import styled from '@emotion/styled'; export interface ToastProps { @@ -96,7 +95,7 @@ export default class Toast extends React.Component { transformOrigin={transformOrigin} padding={PopupPadding.s} handleClose={onClose} - closeIconSize={IconButtonSize.Small} + closeIconSize="small" {...elemProps} > diff --git a/modules/toast/react/package.json b/modules/toast/react/package.json index 77065b5a27..8a293c16cf 100644 --- a/modules/toast/react/package.json +++ b/modules/toast/react/package.json @@ -41,7 +41,6 @@ "dependencies": { "@emotion/core": "^10.0.28", "@emotion/styled": "^10.0.27", - "@workday/canvas-kit-react-button": "^3.5.0", "@workday/canvas-kit-react-common": "^3.5.0", "@workday/canvas-kit-react-core": "^3.5.0", "@workday/canvas-kit-react-icon": "^3.5.0",