Skip to content

Commit

Permalink
fix(accordion): remove aria-disabled
Browse files Browse the repository at this point in the history
Remove aria-disabled attribute
  • Loading branch information
OlenaKashuba committed Mar 22, 2023
1 parent 2fd979e commit 73cdfe3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/hooks/useAccordion/useAccordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { mod } from '../../helpers/utils';

export interface AccordionHeaderProps {
'aria-controls': string;
'aria-disabled': boolean;
'aria-expanded': boolean;
id: string;
key: string;
Expand Down Expand Up @@ -116,7 +115,6 @@ export const useAccordion = (props?: {}) => {

const getHeaderProps: GetAccordionHeaderProps = (id, index) => ({
'aria-controls': getLinkingId(id),
'aria-disabled': isActiveSection(index),
'aria-expanded': isActiveSection(index),
id,
key: id,
Expand Down

0 comments on commit 73cdfe3

Please sign in to comment.