Skip to content

Commit 7185a19

Browse files
uzirthapaclaude
andcommitted
fix: Update comment to accurately describe textContent usage
Address PR review comment: say "text content" instead of "visible text content" since textContent includes all text nodes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8866e95 commit 7185a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/bundle/src/adaptiveCards/Attachment/AdaptiveCardHacks/useRoleModEffect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default function useRoleModEffect(
4141
const hasOriginalAriaLabel = !!cardElement.getAttribute('aria-label');
4242

4343
// If the card doesn't have an aria-label (i.e. no "speak" property was set),
44-
// derive one from the card's visible text content so screen readers can announce it.
44+
// derive one from the card's text content so screen readers can announce it.
4545
let undoAriaLabel: (() => void) | undefined;
4646

4747
if (!hasOriginalAriaLabel) {

0 commit comments

Comments
 (0)