Skip to content

Commit 945fe57

Browse files
authored
fix: AvailabilitySettings atom closing override window button (#15518)
* fix: close override window button * fix: test
1 parent c958b60 commit 945fe57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/ui/components/dialog/Dialog.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export function DialogClose(
244244
data-testid={props["data-testid"] || "dialog-rejection"}
245245
color={props.color || "minimal"}
246246
{...props}>
247-
{props.children ? props.children : t("Close")}
247+
{props.children ? props.children : t("close")}
248248
</Button>
249249
</Close>
250250
);

packages/ui/components/dialog/dialog.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ describe("Tests for Dialog component", () => {
128128

129129
test("Should use color from props in CloseDialog", async () => {
130130
render(<DialogComponent open color="destructive" />);
131-
const closeBtn = screen.getByText("Close");
131+
const closeBtn = screen.getByText("close");
132132
expect(closeBtn.classList.toString()).toContain("hover:text-red-700");
133133
});
134134

0 commit comments

Comments
 (0)