Skip to content

Commit 53de587

Browse files
committed
fix: invisible select items in dialog
1 parent 9fda55e commit 53de587

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/wild-birds-beg.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@msw-dev-tool/react": patch
3+
---
4+
5+
- fix bug: invisible select because of `z-index` of dialog

packages/react/src/style/msw-dev-tool.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106

107107
.dialog-content {
108108
@apply bg-white flex flex-col text-gray-900;
109-
@apply fixed z-[9999];
109+
@apply fixed;
110110
@apply top-[50%] left-[50%] -translate-x-[50%] -translate-y-[50%];
111111
@apply max-h-[85vh] max-w-[70vw];
112112
@apply overflow-hidden rounded-lg px-[1rem] py-[2rem] box-border;

packages/react/src/ui/DevToolContent/ToolButtonGroup/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const ToolButtonGroup = () => {
5353
<DialogDescription className="m-0 my-2.5">
5454
Temp handler is stored in the session storage. If you{" "}
5555
<span className="font-bold">reset dev tool</span>, it will be{" "}
56-
<span style={{ color: "red" }}>deleted</span>.
56+
<span className="text-red-500">deleted</span>.
5757
</DialogDescription>
5858
<HandlerForm onClose={() => setIsDialogOpen(false)} />
5959
</DialogContent>

0 commit comments

Comments
 (0)