Skip to content

Commit 1c204c9

Browse files
committed
[Site] Fix TerminalCommand copy
1 parent 409bc3f commit 1c204c9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ux.symfony.com/templates/components/TerminalCommand.html.twig

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
<div {{ attributes.defaults({class: 'TerminalCommand'}) }} data-controller="ux-clipboard">
1+
<div {{ attributes.defaults({class: 'TerminalCommand'}) }}
2+
data-controller="ux-clipboard"
3+
data-ux-clipboard-source-value="{{ command }}"
4+
>
25
<pre
36
class="TerminalCommand_input"
47
aria-label="{{ label|default }}"
5-
><code data-clipboard-target="source">{{ command }}</code></pre>
8+
><code>{{ command }}</code></pre>
69
<button
710
type="button"
811
class="TerminalCommand_action btn btn-copy"
912
aria-label="Copy command"
10-
data-action="clipboard#copy"
13+
data-action="ux-clipboard#copy"
1114
>
1215
<twig:Icon name="copy"/>
1316
</button>

0 commit comments

Comments
 (0)