Skip to content

Commit

Permalink
Fix z-index (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
codemers authored Oct 2, 2022
1 parent d4eab7e commit 2ddf928
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/nice-tigers-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@feedbackfarm/js": patch
"@feedbackfarm/react": patch
---

Fix z-index
1 change: 1 addition & 0 deletions packages/js/src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function setupIFrame() {
iframe.style.boxShadow = "0 0 10px rgba(0, 0, 0, 0.1)";
iframe.style.borderRadius = "18px";
iframe.style.display = "none";
iframe.style.zIndex = "9999";
document.body.append(iframe);
}

Expand Down
3 changes: 1 addition & 2 deletions packages/react/src/components/FeedbackFarm/FeedbackFarm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default function FeedbackFarm(props: Props) {

const script = document.createElement("script");
script.id = "feedback-farm-script";
script.src = "https://unpkg.com/@feedbackfarm/[email protected].2/dist/widget.js";
script.src = "https://unpkg.com/@feedbackfarm/[email protected].4/dist/widget.js";
script.defer = true;
document.head.appendChild(script);
}, []);
Expand All @@ -105,7 +105,6 @@ export default function FeedbackFarm(props: Props) {
.join("&");

iframe.src = `https://widget.feedback.farm?${queryString}`;
iframe.style.zIndex = "9999";
}
}, [
props.endImageUrl,
Expand Down

1 comment on commit 2ddf928

@vercel
Copy link

@vercel vercel bot commented on 2ddf928 Oct 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.