Skip to content

Commit

Permalink
fix(CodeSnippet): announce copy to screen reader (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
ragi96 authored Jan 27, 2025
1 parent a50995b commit c671445
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/code-snippet-block/src/CodeSnippetBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export const CodeSnippetBlock: FC<BlockProps> = ({ appBridge }) => {
className="tw-flex tw-items-center tw-justify-end tw-gap-1 tw-pr-2 tw-rounded-md"
style={getStyle()}
onClick={handleCopy}
aria-live="assertive"
>
{getCopyButtonText()}
</button>
Expand Down

0 comments on commit c671445

Please sign in to comment.