Skip to content

Commit 2ac68d6

Browse files
author
Andrew Hall
authored
Fix colors to have more visible contrast ratio (#7766)
Fixes internal issue devdiv.visualstudio.com/DevDiv/_workitems/edit/2295981 The default color by the host is #E49400 which has a ratio of 2.38:1. New color is defined by vs-code (blue by default, them dependent setting) at #007FD4 getting the ratio to ~4:1 image
1 parent abb26cd commit 2ac68d6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/razor/src/csharp/csharpPreviewPanel.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ export class CSharpPreviewPanel {
126126
vertical-align: middle;
127127
cursor: pointer;
128128
}
129+
button:focus-visible {
130+
outline-color: var(--vscode-focusBorder)
131+
}
129132
</style>
130133
131134
<script type="text/javascript">

src/razor/src/html/htmlPreviewPanel.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ export class HtmlPreviewPanel {
127127
vertical-align: middle;
128128
cursor: pointer;
129129
}
130+
button:focus-visible {
131+
outline-color: var(--vscode-focusBorder)
132+
}
130133
</style>
131134
132135
<script type="text/javascript">

0 commit comments

Comments
 (0)