Skip to content

Commit

Permalink
[Site] Fix TerminalCommand copy
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre committed Apr 17, 2024
1 parent d4df614 commit 2ddd0f6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ux.symfony.com/templates/components/TerminalCommand.html.twig
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
<div {{ attributes.defaults({class: 'TerminalCommand'}) }} data-controller="ux-clipboard">
<div {{ attributes.defaults({class: 'TerminalCommand'}) }}
data-controller="ux-clipboard"
data-ux-clipboard-source-value="{{ command }}"
>
<pre
class="TerminalCommand_input"
aria-label="{{ label|default }}"
><code data-clipboard-target="source">{{ command }}</code></pre>
><code>{{ command }}</code></pre>
<button
type="button"
class="TerminalCommand_action btn btn-copy"
aria-label="Copy command"
data-action="clipboard#copy"
data-action="ux-clipboard#copy"
>
<twig:Icon name="copy"/>
</button>
Expand Down

0 comments on commit 2ddd0f6

Please sign in to comment.