Skip to content

Commit

Permalink
Make the copy button more obviously a button
Browse files Browse the repository at this point in the history
  • Loading branch information
Arie committed Aug 28, 2020
1 parent a9d852d commit c5a0367
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/shared/_copy_button.html.haml
@@ -1,5 +1,6 @@
.clip_container.clipboard-btn{:id => "#{copy_button_id}_container", :data => { :"clipboard-text" => copy_text } }
.clip_button{:id => copy_button_id, :title => "Copy to clipboard"}
%i.fa.fa-copy{:id => "#{copy_button_id}_icon"}>
%btn.btn-sm.btn-secondary{id: "#{copy_button_id}_icon"}
%i.fa.fa-copy
:javascript
new Clipboard("##{copy_button_id}_container");

0 comments on commit c5a0367

Please sign in to comment.