diff --git a/frontend/libs/console/legacy-ce/src/lib/new-components/Dialog/Dialog.stories.tsx b/frontend/libs/console/legacy-ce/src/lib/new-components/Dialog/Dialog.stories.tsx
index 2ef3f074385..f27706bbd5d 100644
--- a/frontend/libs/console/legacy-ce/src/lib/new-components/Dialog/Dialog.stories.tsx
+++ b/frontend/libs/console/legacy-ce/src/lib/new-components/Dialog/Dialog.stories.tsx
@@ -2,6 +2,7 @@ import React from 'react';
import { ComponentMeta, Story } from '@storybook/react';
import { RiPlayFill } from 'react-icons/ri';
import { Dialog, DialogProps, FooterProps } from './Dialog';
+import { hasuraToast } from '../Toasts';
export default {
title: 'components/Dialog',
@@ -72,3 +73,40 @@ CustomFooter.args = {
isLoading: false,
footer:
custom footer
,
};
+
+export const CollisionWithToast: Story = args => (
+
+);
+
+CollisionWithToast.args = {
+ title: 'Title',
+ description: 'Description',
+ callToDeny: 'Cancel',
+ callToAction: 'Show toast',
+ hasBackdrop: true,
+ isLoading: false,
+};
diff --git a/frontend/libs/console/legacy-ce/src/lib/new-components/Toasts/ToastsHub.tsx b/frontend/libs/console/legacy-ce/src/lib/new-components/Toasts/ToastsHub.tsx
index 0f11e50797f..561e070bc02 100644
--- a/frontend/libs/console/legacy-ce/src/lib/new-components/Toasts/ToastsHub.tsx
+++ b/frontend/libs/console/legacy-ce/src/lib/new-components/Toasts/ToastsHub.tsx
@@ -40,6 +40,7 @@ export const ToastsHub = ({ className = '' }: { className?: string }) => {
position: 'absolute',
transition: 'all 0.3s ease-out',
opacity: toast.visible ? 1 : 0,
+ pointerEvents: toast.visible ? 'all' : 'none',
transform: `translate(-100%, ${offset}px)`,
zIndex: toast.visible ? 9999 : 9998,
}}
diff --git a/frontend/libs/console/legacy-ee/src/lib/components/Services/Metrics/Common/DatePickerModal.js b/frontend/libs/console/legacy-ee/src/lib/components/Services/Metrics/Common/DatePickerModal.js
index 66cd8c1d0a4..7c420b430ac 100644
--- a/frontend/libs/console/legacy-ee/src/lib/components/Services/Metrics/Common/DatePickerModal.js
+++ b/frontend/libs/console/legacy-ee/src/lib/components/Services/Metrics/Common/DatePickerModal.js
@@ -10,6 +10,7 @@ import 'react-date-range/dist/theme/default.css'; // theme css file
import { Button } from '@hasura/console-legacy-ce';
import styles from '../Metrics.module.scss';
+import clsx from 'clsx';
const DatePickerModal = props => {
const selectionRange = {
@@ -44,7 +45,7 @@ const DatePickerModal = props => {
id="dateModal"
onHide={onHide}
show={show}
- className={styles.datePickerModalWrapper}
+ className={clsx(styles.datePickerModalWrapper, '!pointer-events-auto')}
>