Skip to content

Commit 3b5b3a2

Browse files
committed
refactor(cdk-experimental/accordion): removes hardcoded strings
Updates previous change by removing hardcoded strings.
1 parent ed4bac5 commit 3b5b3a2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/cdk-experimental/accordion/accordion.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export class CdkAccordionPanel {
9494
'[attr.aria-expanded]': 'pattern.expanded()',
9595
'[attr.aria-controls]': 'pattern.controls()',
9696
'[attr.aria-disabled]': 'pattern.disabled()',
97-
'[attr.inert]': 'hardDisabled() ? true : null',
9897
'[attr.disabled]': 'hardDisabled() ? true : null',
9998
'[attr.tabindex]': 'pattern.tabindex()',
10099
'(keydown)': 'pattern.onKeydown($event)',
@@ -157,12 +156,8 @@ export class CdkAccordionTrigger {
157156
}
158157
}
159158

160-
/** Determine the state labels of the Accordion Trigger to pass to the label. */
161-
const expansionLabel = this.pattern.expanded() ? '(Expanded)' : '(Collapsed)';
162-
const disabledLabel = this.pattern.disabled() ? '(Disabled)' : '';
163-
164159
/** Combine all parts into the final label. */
165-
return `${buttonText.trim()} ${expansionLabel} ${disabledLabel}`.trim();
160+
return `${buttonText.trim()}`.trim();
166161
});
167162

168163
constructor() {

0 commit comments

Comments
 (0)