Skip to content

Commit

Permalink
feat(accordion): disable focus when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
skhamvon authored and dpellier committed Nov 10, 2023
1 parent c294f36 commit f30e237
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export class OsdsAccordion implements OdsAccordionAttribute, OdsAccordionEvent {
<Host>
<details class={'accordion__wrapper'}
{...{
tabIndex: this.disabled ? -1 : 0,
onToggle: () => {
this.controller.onToggle();
},
Expand Down

0 comments on commit f30e237

Please sign in to comment.