From c9137b520979b9329a3d9651b236c6525594ae55 Mon Sep 17 00:00:00 2001 From: Joy Serquina Date: Wed, 3 Sep 2025 07:22:16 +0000 Subject: [PATCH] fix(cdk-experimental/accordion): removes inert attribute from accordion trigger Updates accordion trigger attributes by removing the inert attribute to allow for screen readers to reference the aria-labelledby id value of the trigger when associating it with the accordion content panel. Fixes b/438312273 fix(cdk-experimental/accordion): removes inert attribute from accordion trigger Removes the inert attribute from accordion trigger to enable screen readers to access the accordion trigger id and aria attributes to be able to announce more helpful/informative screen reader messages to the user. Fixes b/438312273 --- src/cdk-experimental/accordion/accordion.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cdk-experimental/accordion/accordion.ts b/src/cdk-experimental/accordion/accordion.ts index 6509e73e72b9..15bcea4a0f4f 100644 --- a/src/cdk-experimental/accordion/accordion.ts +++ b/src/cdk-experimental/accordion/accordion.ts @@ -93,7 +93,6 @@ export class CdkAccordionPanel { '[attr.aria-expanded]': 'pattern.expanded()', '[attr.aria-controls]': 'pattern.controls()', '[attr.aria-disabled]': 'pattern.disabled()', - '[attr.inert]': 'hardDisabled() ? true : null', '[attr.disabled]': 'hardDisabled() ? true : null', '[attr.tabindex]': 'pattern.tabindex()', '(keydown)': 'pattern.onKeydown($event)',