Skip to content

Commit 69220b7

Browse files
fix: link colour (#1424)
1 parent e79c4c9 commit 69220b7

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

src/rovo-dev/ui/RovoDev.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,12 @@ body {
422422
color: var(--ds-text-inverse);
423423
}
424424

425+
.rovodev-markdown-link {
426+
cursor: pointer;
427+
color: var(--ds-text-inverse);
428+
text-decoration: underline;
429+
}
430+
425431
/* Pull Request button styles */
426432
.pull-request-button {
427433
display: flex;
@@ -970,4 +976,8 @@ body {
970976
}
971977
.vscode-high-contrast .deep-plan-indicator:hover {
972978
border: 2px solid var(--vscode-focusBorder);
979+
}
980+
981+
.vscode-high-contrast .rovodev-markdown-link {
982+
color: inherit;
973983
}

src/rovo-dev/ui/common/common.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ mdParser.renderer.rules.link_open = function (tokens, idx, options, env, self) {
2929

3030
token.attrs!.splice(hrefIndex, 1);
3131
token.attrSet('data-href', hrefValue);
32-
token.attrSet(
33-
'style',
34-
'cursor: pointer; color: var(--vscode-textLink-foreground); text-decoration: underline;',
35-
);
32+
token.attrSet('class', 'rovodev-markdown-link');
3633
}
3734
}
3835
return self.renderToken(tokens, idx, options);

0 commit comments

Comments
 (0)