Skip to content

Commit

Permalink
Merge pull request #4584 from dlech/fix-underline-style
Browse files Browse the repository at this point in the history
use border-bottom instead of box-shadow for underline cursor in DOM renderer
  • Loading branch information
jerch authored Aug 1, 2023
2 parents b46404b + 9663429 commit 73e6058
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/browser/renderer/dom/DomRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class DomRenderer extends Disposable implements IRenderer {
styles +=
`@keyframes blink_box_shadow` + `_` + this._terminalClass + ` {` +
` 50% {` +
` box-shadow: none;` +
` border-bottom-style: hidden;` +
` }` +
`}`;
styles +=
Expand Down Expand Up @@ -204,7 +204,9 @@ export class DomRenderer extends Disposable implements IRenderer {
` box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${colors.cursor.css} inset;` +
`}` +
`${this._terminalSelector} .${ROW_CONTAINER_CLASS} .${CURSOR_CLASS}.${CURSOR_STYLE_UNDERLINE_CLASS} {` +
` box-shadow: 0 -1px 0 ${colors.cursor.css} inset;` +
` border-bottom: 1px ${colors.cursor.css};` +
` border-bottom-style: solid;` +
` height: calc(100% - 1px);` +
`}`;
// Selection
styles +=
Expand Down

0 comments on commit 73e6058

Please sign in to comment.