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'}"
class:bx--snippet-container="{true}"
>
<code>
<pre bind:this="{ref}">
<slot>{code}</slot>
<pre
bind:this="{ref}">
<code><slot>{code}</slot></code>
</pre>
</code>
</div>
{#if !hideCopyButton}
<CopyButton