refactor: rename class .icon to .gdoc-icon (#379)
BREAKING CHANGE: The class `.icon` was renamed to `.gdoc-icon` to avoid conflicts.
This commit is contained in:
parent
97937f3164
commit
b104d6ac70
20 changed files with 62 additions and 62 deletions
|
@ -11,8 +11,8 @@ export function createCopyButton(highlightDiv) {
|
|||
button.classList.add("flex", "align-center", "justify-center", "clip", "gdoc-post__codecopy")
|
||||
button.type = "button"
|
||||
button.innerHTML =
|
||||
'<svg class="icon copy"><use xlink:href="#gdoc_copy"></use></svg>' +
|
||||
'<svg class="icon check hidden"><use xlink:href="#gdoc_check"></use></svg>'
|
||||
'<svg class="gdoc-icon copy"><use xlink:href="#gdoc_copy"></use></svg>' +
|
||||
'<svg class="gdoc-icon check hidden"><use xlink:href="#gdoc_check"></use></svg>'
|
||||
button.setAttribute("data-clipboard-text", codeToCopy)
|
||||
button.setAttribute("data-copy-feedback", "Copied!")
|
||||
button.setAttribute("role", "button")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue