Skip to content

Commit 5a1771a

Browse files
committed
Update clipboard copy button for light / dark mode
1 parent c1320b0 commit 5a1771a

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

app/javascript/css/application.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
@import './utilities/custom.css' layer(utilities);
2222

2323
@import './components/logo.css';
24+
@import './components/clipboard-copy.css';
2425
@import './components/button.css';
2526
@import './components/select.css';
2627
@import './components/code.scss';
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
button.button--clipboard-copy {
2+
background-color: transparent;
3+
}

app/views/components/clipboard_copy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def view_template
1717
aria_label: "Copy to clipboard",
1818
type: "button",
1919
class:
20-
"text-gray-500 dark:text-gray-400 group rounded-md text-sm md:p-2 relative",
20+
"button--clipboard-copy text-gray-500 dark:text-gray-400 group rounded-md text-sm md:p-2 relative",
2121
data_action: "clipboard-copy#copy",
2222
data_clipboard_copy_target: "source",
2323
data_value: text

0 commit comments

Comments
 (0)