Skip to content

Commit e0df5c3

Browse files
bug symfony#52979 [WebProfilerBundle] Fix "Copy as cURL" dark style (HypeMC)
This PR was merged into the 6.4 branch. Discussion ---------- [WebProfilerBundle] Fix "Copy as cURL" dark style | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix symfony#52937 (comment) | License | MIT Followup to symfony#52937, addresses `@javiereguiluz`'s comment. The button no longer changes color when using the dark theme: ![dark](https://github.com/symfony/symfony/assets/2445045/dc1dc267-a541-4ab7-8be9-db152d48dc12) Nothing changed when using the light theme: ![light](https://github.com/symfony/symfony/assets/2445045/13a60002-d02e-42e9-8e08-e967bae4ef6e) Commits ------- e4f47f2 [WebProfilerBundle] Fix "Copy as cURL" dark style
2 parents 072db6b + e4f47f2 commit e0df5c3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,10 @@
186186
187187
copyToClipboardElement.textContent = `✅ Copied!`;
188188
copyToClipboardElement.disabled = true;
189-
copyToClipboardElement.classList.add('status-success');
190189
191190
setTimeout(() => {
192191
copyToClipboardElement.textContent = oldContent;
193192
copyToClipboardElement.disabled = false;
194-
copyToClipboardElement.classList.remove('status-success');
195193
}, 7000);
196194
});
197195
});

0 commit comments

Comments
 (0)