Bug: Code block Copy Button is showing on non-Bash codeblocks #4943
Labels
Status: Needs Review
This issue/PR needs an initial or additional review
Type: Bug
Involves something that isn't working as intended
Checks
Bug: brief description of bug
format, e.g.Bug: Lesson complete button does not update on click
Bug description
When the copy button was originally introduced, it was restricted to only Bash, to preserve the effect of actually typing out the code for other languages. This is enforced on a technical level by this block of code in
prism-theme.css
:theodinproject/app/assets/stylesheets/custom_styles/prism-theme.css
Lines 31 to 33 in 68bc52c
On the production site, however, this appears to have failed however, as I see it in other languages as well. Even more bizarrely, when I load up an up to date copy of the site locally, it does work
How to reproduce
Expected behavior
The copy button does not appear
What browsers are you seeing the problem on?
Firefox, Chrome
What OS are you using?
Windows
Discord Name
asarta
Additional Comments
Point of consideration: given this has been broken for who knows how long, and nobody has complained, is it even worth preserving this restriction?
The text was updated successfully, but these errors were encountered: