From b69982cb56f4d1cbe1ef3f5d13e375a62fabda6b Mon Sep 17 00:00:00 2001 From: glebbo <75304736+glebbo-dev@users.noreply.github.com> Date: Thu, 12 Dec 2024 06:49:35 +0100 Subject: [PATCH] Fix: removed attribute disabled from host element to avoid accessibility issues --- packages/components/src/components/button/button.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/components/src/components/button/button.tsx b/packages/components/src/components/button/button.tsx index a0e3f6e4eb..c8b0b569bb 100644 --- a/packages/components/src/components/button/button.tsx +++ b/packages/components/src/components/button/button.tsx @@ -201,6 +201,12 @@ export class Button { this.disabled && 'disabled' ); + if (!this.disabled) { + this.hostElement.removeAttribute('disabled'); + } else { + this.hostElement.setAttribute('disabled', 'true'); + } + return ( {this.styles && }