#Modal is transparent
5 messages ยท Page 1 of 1 (latest)
You might have ssome styles in your application that do that
This is my :
@tailwind base;
@tailwind components;
@tailwind utilities;
/* ๐ Make sure the styles are applied in the correct order */
@layer mantine, mantine-datatable;
@layer utilities {
.bg-primary {
@apply bg-brand-600;
}
.text-primary {
@apply text-brand-600;
}
.border-primary {
@apply border-brand-600;
}
}
/* For light mode */
:root[data-mantine-color-scheme="light"] {
--mantine-color-body: var(--mantine-color-primary-0) !important;
}
/* For dark mode */
:root[data-mantine-color-scheme="dark"] {
--mantine-color-body: #282827 !important;
}
does the modal have style to change the bg?
/* For light mode */
:root[data-mantine-color-scheme="light"] {
--mantine-color-body: var(--mantine-color-primary-0) !important;
}
/* For dark mode */
:root[data-mantine-color-scheme="dark"] {
--mantine-color-body: #282827 !important;
}
When I disable this both the background color of modal will now work