diff --git a/src/components/FloatingWhatsApp.tsx b/src/components/FloatingWhatsApp.tsx index c2745d3..3be97dc 100644 --- a/src/components/FloatingWhatsApp.tsx +++ b/src/components/FloatingWhatsApp.tsx @@ -213,7 +213,10 @@ export function FloatingWhatsApp({ className={`${css.whatsappButton} ${buttonClassName}`} onClick={handleOpen} style={buttonStyle} - aria-hidden='true' + role='button' + tabIndex={0} + aria-label='Open WhatsApp chat' + onKeyDown={(e) => e.key === 'Enter' || e.key === ' ' ? handleOpen(e as unknown as React.MouseEvent) : undefined} > {isNotification && ( @@ -226,7 +229,8 @@ export function FloatingWhatsApp({
event.stopPropagation()} - aria-hidden='true' + aria-hidden={!isOpen} + {...(!isOpen && { inert: '' })} style={{ height: isOpen ? chatboxHeight : 0, ...chatboxStyle }} >
@@ -237,7 +241,14 @@ export function FloatingWhatsApp({ {accountName} {statusMessage}
-