Skip to content

Commit

Permalink
Merge pull request #24984 from wjdtjdgns/fix/screenreader-expand-coll…
Browse files Browse the repository at this point in the history
…apse-state

UI: Screen reader announcing changes for expand/collapse button
  • Loading branch information
ndelangen authored Nov 27, 2023
2 parents 3bcdc4e + d227dea commit faf185b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ui/manager/src/components/sidebar/Tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ const Node = React.memo<NodeProps>(function Node({
{isExpanded && (
<IconButton
className="sidebar-subheading-action"
aria-label="expand"
aria-label={isFullyExpanded ? 'Expand' : 'Collapse'}
data-action="expand-all"
data-expanded={isFullyExpanded}
onClick={(event) => {
Expand Down

0 comments on commit faf185b

Please sign in to comment.