From 4c63f08a6283f19f6f28727727378f7c1e38e316 Mon Sep 17 00:00:00 2001 From: vince-fugnitto Date: Mon, 20 Jul 2020 09:40:51 -0400 Subject: [PATCH] terminal: fix xterm opacity issue Fixes: #8158 The following commit addresses an issue with newer versions of `xterm` which displayed a secondary cursor-like border due to our global `:focus` class. The fix updates the xterm textarea to force an opacity consistent with their sources. Signed-off-by: vince-fugnitto --- packages/terminal/src/browser/style/terminal.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/terminal/src/browser/style/terminal.css b/packages/terminal/src/browser/style/terminal.css index bf4a9f21882a1..39e087fab9492 100644 --- a/packages/terminal/src/browser/style/terminal.css +++ b/packages/terminal/src/browser/style/terminal.css @@ -25,3 +25,9 @@ /* fix random 1px white border on terminal in Firefox. See https://github.com/eclipse-theia/theia/issues/4665 */ border: 1px solid var(--theia-terminal-background); } + + +.terminal-container .xterm .xterm-helper-textarea { + /* fix secondary cursor-like issue. See https://github.com/eclipse-theia/theia/issues/8158 */ + opacity: 0 !important; +}