The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Remove the focus ring from submitted lead comment inputs
Rafid599af788c57
diff --git a/apps/web/ui/submitted-leads/partner-submitted-lead-comments.tsx b/apps/web/ui/submitted-leads/partner-submitted-lead-comments.tsxindex 9836fa8068..9d0dc15d7c 100644--- a/apps/web/ui/submitted-leads/partner-submitted-lead-comments.tsx+++ b/apps/web/ui/submitted-leads/partner-submitted-lead-comments.tsx@@ -10,6 +10,7 @@ import { useAction } from "next-safe-action/hooks";import { toast } from "sonner";import { v4 as uuid } from "uuid";import {+ COMMENT_CONTAINER_CLASSNAME,COMMENT_INPUT_CLASSNAME,COMMENT_TOOLBAR_CLASSNAME,CommentCard,@@ -86,6 +87,7 @@ export function PartnerSubmittedLeadComments({ leadId }: { leadId: string }) {}}placeholder="Leave a comment for this program"sendButtonText="Post"+ className={COMMENT_CONTAINER_CLASSNAME}inputClassName={COMMENT_INPUT_CLASSNAME}toolbarClassName={COMMENT_TOOLBAR_CLASSNAME}/>diff --git a/apps/web/ui/submitted-leads/submitted-lead-comments.tsx b/apps/web/ui/submitted-leads/submitted-lead-comments.tsxindex cb9ea1d65b..d442066278 100644--- a/apps/web/ui/submitted-leads/submitted-lead-comments.tsx+++ b/apps/web/ui/submitted-leads/submitted-lead-comments.tsx@@ -39,6 +39,10 @@ export const COMMENT_INPUT_CLASSNAME ="mx-1 mt-1 rounded-[10px] border border-transparent transition-colors [&>[aria-hidden]]:rounded-[9px] [&_.ProseMirror]:min-h-16";export const COMMENT_TOOLBAR_CLASSNAME = "p-2";+// Comment inputs do not show the focus ring that message inputs use+export const COMMENT_CONTAINER_CLASSNAME =+ "focus-within:border-border-subtle focus-within:ring-0";+const VISIBILITY_OPTIONS = [{ partnerVisible: false, label: "Workspace only" },{ partnerVisible: true, label: "Workspace and partner" },@@ -118,6 +122,7 @@ export function SubmittedLeadComments({ leadId }: { leadId: string }) {: "Leave a comment for your workspace"}sendButtonText="Post"+ className={COMMENT_CONTAINER_CLASSNAME}inputClassName={cn(COMMENT_INPUT_CLASSNAME,partnerVisible &&@@ -427,7 +432,10 @@ export function CommentCard({});}}autoFocus- className="animate-fade-in bg-white"+ className={cn(+ "animate-fade-in bg-white",+ COMMENT_CONTAINER_CLASSNAME,+ )}placeholder="Edit comment"sendButtonText="Save"/>