Skip to content

Commit

Permalink
fix(sidebar): move aria-expanded attribute to button
Browse files Browse the repository at this point in the history
  • Loading branch information
Daraphista authored May 29, 2022
1 parent 44f7a2a commit 0e2988c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/src/components/sidebar/Tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ const Node = React.memo<NodeProps>(
data-ref-id={refId}
data-item-id={item.id}
data-nodetype="root"
aria-expanded={isExpanded}
>
<CollapseButton
type="button"
Expand All @@ -199,6 +198,7 @@ const Node = React.memo<NodeProps>(
event.preventDefault();
setExpanded({ ids: [item.id], value: !isExpanded });
}}
aria-expanded={isExpanded}
>
<CollapseIcon isExpanded={isExpanded} />
{item.renderLabel?.(item) || item.name}
Expand Down

0 comments on commit 0e2988c

Please sign in to comment.