I was working on my website and using icons from fontawesome.com. When you hover over the code required to embed an icon into the HTML (any icon), a tooltip appears that says "Copy Code Snippet." I'm trying to contribute more toward open source projects and thought this would be a good opportunity. I want to change "Copy Code Snippet" to "Click to Copy" as I feel its more intuitive. I've forked Font-Awesome repo and searched for "Copy Code Snippet" with git grep and returned nothing. I inspected the page and was able to track down a couple instances of "Copy Code Snippet" in the minified JS, but I can't edit it and reflect it in the UI. I've tried debugging with breakpoints, but I'm really not sure what I'm doing there. I think I've pretty much exhausted ChatGPTs responses, which are currently pointing me in the direction of looking at build configurations, package.json files, etc. I realize that the tooltip is probably being called with an event listener, but I'm unsure of how to track this down and edit it, if its even possible with the way Font-Awesome is configured. Here's a video of my whole situation to give a better idea. Obviously you'll have to fork Font Awesome's repo.
28 авг 2024