Merge pull request #20387 from calixteman/bug1995721

[Editor] Fix the css of the link in the comment sidebar (bug 1995721)
This commit is contained in:
calixteman 2025-10-23 09:00:48 +02:00 committed by GitHub
commit 1b5ecd36e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -208,6 +208,9 @@
--button-comment-hover-bg: light-dark(#e0e0e6, #52525e); --button-comment-hover-bg: light-dark(#e0e0e6, #52525e);
--button-comment-hover-color: var(--button-comment-color); --button-comment-hover-color: var(--button-comment-color);
--link-fg-color: light-dark(#0060df, #0df);
--link-hover-fg-color: light-dark(#0250bb, #80ebff);
@media screen and (forced-colors: active) { @media screen and (forced-colors: active) {
--comment-date-fg-color: CanvasText; --comment-date-fg-color: CanvasText;
--comment-bg-color: Canvas; --comment-bg-color: Canvas;
@ -229,6 +232,8 @@
--button-comment-border: 1px solid ButtonText; --button-comment-border: 1px solid ButtonText;
--button-comment-hover-bg: Highlight; --button-comment-hover-bg: Highlight;
--button-comment-hover-color: HighlightText; --button-comment-hover-color: HighlightText;
--link-fg-color: LinkText;
--link-hover-fg-color: LinkText;
} }
} }
@ -441,10 +446,15 @@
height: auto; height: auto;
overflow-wrap: break-word; overflow-wrap: break-word;
margin-block-start: 15px; margin-block-start: 15px;
color: var(--link-fg-color);
&:focus-visible { &:focus-visible {
outline: var(--focus-ring-outline); outline: var(--focus-ring-outline);
} }
&:hover {
color: var(--link-hover-fg-color);
}
} }
} }