Skip to content

Commit

Permalink
refactor: add title attribute to CopyCodeButton and CodeWrapButton (
Browse files Browse the repository at this point in the history
  • Loading branch information
nnmax authored Jul 3, 2024
1 parent 78fd861 commit a81f1e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function CopyCodeButton({
className={styles.codeCopyButton}
onClick={() => copyCode(codeBlockRef.current, copyButtonRef.current)}
ref={copyButtonRef}
title="Copy code"
>
<SvgWrapper icon={IconCopy} className={styles.iconCopy} />
<SvgWrapper icon={IconSuccess} className={styles.iconSuccess} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export function Code(props: CodeProps) {
ref={wrapButtonRef}
className={styles.codeWrapButton}
onClick={() => toggleCodeWrap(wrapButtonRef.current)}
title="Toggle code wrap"
>
<SvgWrapper icon={IconWrapped} className={styles.iconWrapped} />
<SvgWrapper icon={IconWrap} className={styles.iconWrap} />
Expand Down

0 comments on commit a81f1e7

Please sign in to comment.