Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 314cde7

Browse files
committed
Added a comment
1 parent d5d312f commit 314cde7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/sdk/ui-react/src/widget/collapsibleJsonViewer/collapsibleJsonViewer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ export class CollapsibleJsonViewer extends Component<CollapsibleJsonViewerProps,
190190
// Announce the expanded/collapsed state
191191
const ariaRegion = document.getElementById('ariaRegion');
192192
const newState = proposedAriaExpandedValue ? 'Node expanded' : 'Node collapsed';
193+
// Concatenate the '.' in case it's not present in the textContent property
194+
// to announce that the node was expanded or collapsed
193195
ariaRegion.textContent = ariaRegion.textContent.indexOf('.') > -1 ? newState : newState.concat('.');
194196
};
195197

0 commit comments

Comments
 (0)