You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make high-contrast mode less hacky for Monaco editor in IE and Edge #3690
In our high contrast theme we are using clever CSS that sidesteps around style overrides IE and Edge do when Windows is in High Contrast Mode.
Fortunately, there's a single rule we can use in CSS now to stop IE 10+ and Edge from trying to modify our styles.
-ms-high-contrast-adjust: none
It overrides the browsers' default behavior to modify the styles to be more high-contrasty. This means we can stop using hacks like ::after and ::before elements to insert icons as non-background images (which would otherwise not be displayed as background images).
We need to test that this works well in Monaco and decide if we are ok only supporting IE 10+ as far as IE goes.
Provided we're all good, then let's replace all the hacks with natural solutions.
There is also the -ms-highcontrast: active media feature for a less sledge hammer approach to fixing up HC issues in IE/Edge. super useful with CSS system colours to match the user chosen HC colour settings.
Brad Gashler (@bgashler1) can you please give +1/-1 that we can use this solution? I would like to get rid of the hacks we have for HC theme to solve #8516
Imho it would be good to get rid of these special styles to clean up our CSS.
Brad Gashler (@bgashler1) We are not doing anything special w.r.t. to switching to hc-dark when Windows goes into high-contrast mode. We always said that is the responsibility of the embedders of the editor.
alexandrudima feel free to move to August if the team would like (see my PR comment). I'd love to have auto-recognition of high-contrast theme. I think we can use a get CSS function to see if the -ms-high-contrast: active is present. If so, we should default to the high-contrast theme. This would benefit both web-embedded Monaco and in VS Code visually and accessibility-wise.
PR merged. The automatic switching of the editor to the hc-black and the automatic detection of the high contrast mode in IE/Edge will be tracked in #10576
Activity
bgashler1 commentedon May 18, 2016
Isidor Nikolic (@isidorn) FYI - this is the task I'll work on once your change is in Master. I'll put this on the June Milestone.
dstorey commentedon Jun 14, 2016
There is also the -ms-highcontrast: active media feature for a less sledge hammer approach to fixing up HC issues in IE/Edge. super useful with CSS system colours to match the user chosen HC colour settings.
bpasero commentedon Jul 9, 2016
Brad Gashler (@bgashler1) can you please give +1/-1 that we can use this solution? I would like to get rid of the hacks we have for HC theme to solve #8516
Imho it would be good to get rid of these special styles to clean up our CSS.
9 remaining items
aeschli commentedon Jul 14, 2016
Brad Gashler (@bgashler1) Not sure why you assigned this to me
alexdima commentedon Jul 14, 2016
Brad Gashler (@bgashler1) We are not doing anything special w.r.t. to switching to
hc-darkwhen Windows goes into high-contrast mode. We always said that is the responsibility of the embedders of the editor.Addresses microsoft#3690 high-contrast less hacky in editor
bgashler1 commentedon Jul 26, 2016
alexandrudima feel free to move to August if the team would like (see my PR comment). I'd love to have auto-recognition of high-contrast theme. I think we can use a get CSS function to see if the
-ms-high-contrast: activeis present. If so, we should default to the high-contrast theme. This would benefit both web-embedded Monaco and in VS Code visually and accessibility-wise.isidorn commentedon Jul 26, 2016
Moving to august since alexandrudima is on vacation and this is monaco editor related which releases do not have to be tied to our vscode releases
Merge pull request #9726 from bgashler1/bgashler1/issue-3690/monaco-h…
alexdima commentedon Aug 16, 2016
PR merged. The automatic switching of the editor to the
hc-blackand the automatic detection of the high contrast mode in IE/Edge will be tracked in #10576