Skip to content

Commit e7a4578

Browse files
committed
Don't apply color to the spans
1 parent a05a332 commit e7a4578

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/browser/renderer/dom/DomRenderer.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,15 @@ export class DomRenderer extends Disposable implements IRenderer {
178178

179179
// Base CSS
180180
let styles =
181-
`${this._terminalSelector} .${ROW_CONTAINER_CLASS}, ${this._terminalSelector} .${ROW_CONTAINER_CLASS} span {` +
181+
`${this._terminalSelector} .${ROW_CONTAINER_CLASS} {` +
182182
// Disabling pointer events circumvents a browser behavior that prevents `click` events from
183183
// being delivered if the target element is replaced during the click. This happened due to
184184
// refresh() being called during the mousedown handler to start a selection.
185185
` pointer-events: none;` +
186186
` color: ${colors.foreground.css};` +
187+
`}`;
188+
styles +=
189+
`${this._terminalSelector} .${ROW_CONTAINER_CLASS}, ${this._terminalSelector} .${ROW_CONTAINER_CLASS} span {` +
187190
` font-family: ${this._optionsService.rawOptions.fontFamily};` +
188191
` font-size: ${this._optionsService.rawOptions.fontSize}px;` +
189192
` font-kerning: none;` +

0 commit comments

Comments
 (0)