From b3e4c591972ac7e99d2103e95c109203864830fd Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 4 Feb 2025 11:27:35 -0500 Subject: [PATCH] add secure context notice (#683) --- docs/docs/components/copy-button.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docs/components/copy-button.md b/docs/docs/components/copy-button.md index 7e9e63cc5..ef461af0b 100644 --- a/docs/docs/components/copy-button.md +++ b/docs/docs/components/copy-button.md @@ -9,6 +9,10 @@ icon: copy-button ``` +:::info +Copy buttons use the browser's [`clipboard.writeText()`](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText) method, which requires a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) (HTTPS) in most browsers. +::: + ## Examples ### Custom Labels