From f658879ea13b609027553dfdcb93158d83b38895 Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Wed, 7 Jan 2026 15:24:56 +0000 Subject: [PATCH] Fix selector for codblock copy button The selector used `button.md-clipboard`, but the copy button does not have this class, causing the selector to fail to match. This switches that class for the current copy button's class. --- docs/javascript/fix-codeblock-console-copy-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/javascript/fix-codeblock-console-copy-button.js b/docs/javascript/fix-codeblock-console-copy-button.js index 3e81c845a..06e327523 100644 --- a/docs/javascript/fix-codeblock-console-copy-button.js +++ b/docs/javascript/fix-codeblock-console-copy-button.js @@ -4,7 +4,7 @@ document.addEventListener("DOMContentLoaded", function() { function fixCopyOnlyUserSelectable() { buttonsToFix = document.querySelectorAll( - '.language-console button.md-clipboard'); + '.language-console button.md-code__button'); if (buttonsToFix.length) console.log('Fixing copy-to-clipboard text of console code-blocks.'); buttonsToFix.forEach((btn) => {