Skip to content

Commit

Permalink
Copy to clipboard: Switch anchor to button (#1926)
Browse files Browse the repository at this point in the history
This changes the anchor element into a button which fixes that the element is not tabbable.
  • Loading branch information
mAAdhaTTah authored and RunDevelopment committed Jun 1, 2019
1 parent ddf8123 commit 7988019
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/copy-to-clipboard/prism-copy-to-clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}

Prism.plugins.toolbar.registerButton('copy-to-clipboard', function (env) {
var linkCopy = document.createElement('a');
var linkCopy = document.createElement('button');
linkCopy.textContent = 'Copy';

if (!ClipboardJS) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7988019

Please sign in to comment.