Use the blurred yellow backdrop on the Customize dialog.
This commit is contained in:
1 parent
c7f88e5515
commit
c950795844
2 files changed
+25
-1
No files matched your search
@@ -147,7 +147,7 @@ export function TemplateCustomizeDialog({
|
|||||||
<Create
|
<Create
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
backdropVariant="default"
|
backdropVariant="blurredYellow"
|
||||||
ariaLabel={heading}
|
ariaLabel={heading}
|
||||||
headerContent={
|
headerContent={
|
||||||
<div className="px-[24px] pt-[8px]">
|
<div className="px-[24px] pt-[8px]">
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { describe, expect, it } from "vitest";
|
||||||
|
import "@testing-library/jest-dom/vitest";
|
||||||
|
import { renderWithProviders as render } from "../utils/test-utils";
|
||||||
|
import { TemplateCustomizeDialog } from "../../app/(app)/create/components/TemplateCustomizeDialog";
|
||||||
|
|
||||||
|
describe("TemplateCustomizeDialog", () => {
|
||||||
|
it("uses the same blurred yellow backdrop as other create-flow Create modals", () => {
|
||||||
|
render(
|
||||||
|
<TemplateCustomizeDialog
|
||||||
|
isOpen
|
||||||
|
templateTitle="Consensus"
|
||||||
|
valuesCount={3}
|
||||||
|
cardsCount={10}
|
||||||
|
initialTitle=""
|
||||||
|
initialDescription=""
|
||||||
|
initialLocation=""
|
||||||
|
onClose={() => undefined}
|
||||||
|
onContinue={() => undefined}
|
||||||
|
/>,
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(document.querySelector(".backdrop-blur-md")).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in new issue
Block a user