diff --git a/src/components/Panel/Panel.stories.tsx b/src/components/Panel/Panel.stories.tsx index df60572ae..b8cee0fb8 100644 --- a/src/components/Panel/Panel.stories.tsx +++ b/src/components/Panel/Panel.stories.tsx @@ -111,6 +111,14 @@ export const Default = () => { + setVisible({})} + /> + + } size={PanelSize.medium} onClose={() => setVisible({})} /> diff --git a/src/components/Panel/Panel.test.tsx b/src/components/Panel/Panel.test.tsx index 646da9b64..e80ece51b 100644 --- a/src/components/Panel/Panel.test.tsx +++ b/src/components/Panel/Panel.test.tsx @@ -56,7 +56,7 @@ describe('Panel', () => { }); wrapper.find('.panelBackdrop').at(0).simulate('click'); - wrapper.find('.buttonDefault').at(0).simulate('click'); + wrapper.find('.buttonNeutral').at(0).simulate('click'); expect(onClose).toHaveBeenCalledTimes(2); wrapper.setProps({ diff --git a/src/components/Panel/Panel.tsx b/src/components/Panel/Panel.tsx index 3abf18d06..3374dc2fc 100644 --- a/src/components/Panel/Panel.tsx +++ b/src/components/Panel/Panel.tsx @@ -8,7 +8,7 @@ import React, { import { classNames, stopPropagation } from '../../shared/utilities'; import { PanelProps, PanelRef, PanelSize } from './'; import { IconName } from '../Icon'; -import { DefaultButton } from '../Button'; +import { NeutralButton } from '../Button'; import { Portal } from '../Portal'; import { useScrollLock } from '../../hooks/useScrollLock'; @@ -114,7 +114,7 @@ export const Panel = React.forwardRef(
{title}
{closable && ( -