Fix the hover state of the link balloon tooltip
authorAlexander Ebert <ebert@woltlab.com>
Wed, 28 Jun 2023 17:36:24 +0000 (19:36 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 28 Jun 2023 17:36:24 +0000 (19:36 +0200)
See https://www.woltlab.com/community/thread/300338-link-bearbeiten-nicht-optimale-farbwahl/

wcfsetup/install/files/style/ui/ckeditor.scss

index 484045088233938d6f33cf615418ed879bf95e07..124ae14ce31de957c9659bc6a89eed97aa2dcdb7 100644 (file)
@@ -44,6 +44,8 @@
        --ck-color-list-button-on-background: var(--wcfDropdownBackgroundActive);
        --ck-color-list-button-on-background-focus: var(--wcfDropdownBackgroundActive);
        --ck-color-list-button-on-text: var(--wcfDropdownLink);
+
+       --ck-color-link-default: var(--wcfContentLink);
 }
 
 .ck.ck-content {
        --ck-z-modal: 1;
 }
 
+/* Fixes the hover state of the link balloon tooltip. */
+.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover .ck-button__label {
+       color: var(--wcfButtonTextActive);
+}
+.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover {
+       text-decoration: none !important;
+}
+
 html[data-color-scheme="dark"] {
        .ck.ck-editor,
        .ck.ck-body {