From ff8e9394f31212e1a1e64cb11e16772f3fd43be6 Mon Sep 17 00:00:00 2001 From: Mathias Jakobsen Date: Thu, 4 Dec 2025 08:55:50 +0000 Subject: [PATCH] Merge pull request #30078 from overleaf/ae-workbench-code-blocks Update code block styles GitOrigin-RevId: b8a871ba7eb429bb5a359c823d5da0ed6717c021 --- .../web/frontend/js/shared/components/copy-to-clipboard.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/js/shared/components/copy-to-clipboard.tsx b/services/web/frontend/js/shared/components/copy-to-clipboard.tsx index 901e991517..a87c381cbd 100644 --- a/services/web/frontend/js/shared/components/copy-to-clipboard.tsx +++ b/services/web/frontend/js/shared/components/copy-to-clipboard.tsx @@ -8,7 +8,8 @@ export const CopyToClipboard = memo<{ content: string tooltipId: string kind?: 'text' | 'icon' -}>(({ content, tooltipId, kind = 'icon' }) => { + unfilled?: boolean +}>(({ content, tooltipId, kind = 'icon', unfilled = false }) => { const { t } = useTranslation() const [copied, setCopied] = useState(false) @@ -49,6 +50,7 @@ export const CopyToClipboard = memo<{ accessibilityLabel={t('copy')} className="copy-button" icon={copied ? 'check' : 'content_copy'} + unfilled={unfilled} /> )}