Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

replace sr-only by aria-label on contactEdit button

ThieryMichel938ebcd4173c
diff --git a/src/components/atomic-crm/contacts/ContactShow.tsx b/src/components/atomic-crm/contacts/ContactShow.tsx
index db5e6f5c..9436437e 100644
--- a/src/components/atomic-crm/contacts/ContactShow.tsx
+++ b/src/components/atomic-crm/contacts/ContactShow.tsx
@@ -88,10 +88,10 @@ const ContactShowContentMobile = () => {
variant="ghost"
size="icon"
className="rounded-full"
+ aria-label={translate("ra.action.edit")}
onClick={() => setEditOpen(true)}
>
<Pencil className="size-5" />
- <span className="sr-only">{translate("ra.action.edit")}</span>
</Button>
</MobileHeader>
<MobileContent>