clipboard: fix malused Fontawesome style #649

This commit is contained in:
Sören Weber 2023-09-26 21:27:04 +02:00
parent f8d0ec0b6e
commit 4416ab4c7c
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 1 additions and 2 deletions

View file

@ -1174,7 +1174,6 @@ span > .copy-to-clipboard-button {
.copy-to-clipboard-button > i {
font-size: .859625rem;
font-weight: 500;
}
/* only show copy to clipboard on hover for code blocks if configured */

View file

@ -602,7 +602,7 @@ function initCodeClipboard(){
var button = document.createElement( 'span' );
button.classList.add( 'copy-to-clipboard-button' );
button.setAttribute( 'title', window.T_Copy_to_clipboard );
button.innerHTML = '<i class="fas fa-copy"></i>';
button.innerHTML = '<i class="far fa-copy"></i>';
button.addEventListener( 'mouseleave', function() {
this.removeAttribute( 'aria-label' );
this.classList.remove( 'tooltipped', 'tooltipped-w', 'tooltipped-se', 'tooltipped-sw' );