Change the copy code button to the copy octicon (#22769)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
This commit is contained in:
@@ -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 })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user