Skip to content

Commit 158e4f4

Browse files
committed
tweak accordion
1 parent 8f7b2dd commit 158e4f4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/aria/accordion/accordion.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ export class AccordionPanel {
9595
'[id]': '_pattern.id()',
9696
'[attr.aria-expanded]': 'expanded()',
9797
'[attr.aria-controls]': '_pattern.controls()',
98-
'[attr.aria-disabled]': 'disabled()',
98+
'[attr.aria-disabled]': '_pattern.disabled()',
9999
'[attr.disabled]': 'hardDisabled() ? true : null',
100-
'[attr.tabindex]': 'tabindex()',
100+
'[attr.tabindex]': '_pattern.tabindex()',
101101
'(keydown)': '_pattern.onKeydown($event)',
102102
'(pointerdown)': '_pattern.onPointerdown($event)',
103103
'(focusin)': '_pattern.onFocus($event)',
@@ -128,9 +128,6 @@ export class AccordionTrigger {
128128
/** The index of the trigger within its accordion group. */
129129
readonly index = computed(() => this._pattern.index());
130130

131-
/** The tabindex of the trigger. */
132-
readonly tabindex = computed(() => this._pattern.tabindex());
133-
134131
/**
135132
* Whether this trigger is completely inaccessible.
136133
*

0 commit comments

Comments
 (0)