diff --git a/app/routes/_editor+/blocks+/link/_link.tsx b/app/routes/_editor+/blocks+/link/_link.tsx index 76cc862e..be54826d 100644 --- a/app/routes/_editor+/blocks+/link/_link.tsx +++ b/app/routes/_editor+/blocks+/link/_link.tsx @@ -558,8 +558,8 @@ export function LinkBlockElement({ element, children }: Props) { } url={element.icon.url} alt={ - children - ? undefined + children && !element.hideLinkText + ? "" : element?.name ?? undefined } /> @@ -609,7 +609,11 @@ export function LinkBlockElement({ element, children }: Props) { width={!element.removeCircleBorder ? 60 : 120} height={!element.removeCircleBorder ? 60 : undefined} url={element.icon.url} - alt={children ? undefined : element?.name ?? undefined} + alt={ + children && !element.hideLinkText + ? "" + : element?.name ?? undefined + } /> ) : ( @@ -651,7 +655,9 @@ export function LinkBlockElement({ element, children }: Props) { } url={element.icon.url} alt={ - children ? undefined : element?.name ?? undefined + children && !element.hideLinkText + ? "" + : element?.name ?? undefined } /> ) : ( @@ -668,7 +674,9 @@ export function LinkBlockElement({ element, children }: Props) { }} url={element.icon.url} alt={ - children ? undefined : element?.name ?? undefined + children && !element.hideLinkText + ? "" + : element?.name ?? undefined } /> )} @@ -704,7 +712,11 @@ export function LinkBlockElement({ element, children }: Props) { element.iconWidth ? element.iconWidth * 2 : undefined } url={element.icon.url} - alt={children ? undefined : element?.name ?? undefined} + alt={ + children && !element.hideLinkText + ? "" + : element?.name ?? undefined + } /> ) : ( {children )} {!element.hideLinkText ? undefined : (