fix(code-snippet): wrap code element with pre

This commit is contained in:
Eric Y Liu 2021-05-02 15:46:27 -07:00
commit 3505034891

View file

@ -179,11 +179,10 @@
aria-label="{$$restProps['aria-label'] || copyLabel || 'code-snippet'}" aria-label="{$$restProps['aria-label'] || copyLabel || 'code-snippet'}"
class:bx--snippet-container="{true}" class:bx--snippet-container="{true}"
> >
<code> <pre
<pre bind:this="{ref}"> bind:this="{ref}">
<slot>{code}</slot> <code><slot>{code}</slot></code>
</pre> </pre>
</code>
</div> </div>
{#if !hideCopyButton} {#if !hideCopyButton}
<CopyButton <CopyButton