Skip to content

Commit

Permalink
Change the copy code button to the copy octicon (github#22769)
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Bengtsson <[email protected]>
  • Loading branch information
lucascosti and peterbe authored Nov 15, 2021
1 parent 369a7cb commit 10ff422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/render-content/plugins/code-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function addCodeHeader(node) {
// Display the language using the above map of `{ [shortCode]: language }`
const language = LANGUAGE_MAP[node.lang] || node.lang || 'Code'

const btnIconHtml = octicons.paste.toSVG()
const btnIconHtml = octicons.copy.toSVG()
const btnIconAst = parse5.parse(String(btnIconHtml), { sourceCodeLocationInfo: true })
const btnIcon = fromParse5(btnIconAst, { file: btnIconHtml })

Expand Down

0 comments on commit 10ff422

Please sign in to comment.