"Copied!" label no longer wrapping to the next line (#12128)

* tooltips 1.0.1

* tooltips 1.0.1

* button wrapping fix
This commit is contained in:
ludwiczakpawel 2021-01-05 19:24:55 +01:00 committed by GitHub
parent 0ec2a40fe0
commit 13ff4c7fbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,18 +44,13 @@ export const ClipboardButton = ({
value={linksToMarkdownForm(imageUrls)}
/>
<Button
className="spec__image-markdown-copy"
className="spec__image-markdown-copy whitespace-nowrap fw-normal"
variant="ghost"
contentType="icon"
contentType="icon-left"
icon={CopyIcon}
/>
<span
id="image-markdown-copy-link-announcer"
role="alert"
className={`fs-s ${showCopyMessage ? '' : 'opacity-0'}`}
>
Copied!
</span>
{showCopyMessage ? 'Copied!' : 'Copy...'}
</Button>
</clipboard-copy>
);