Skip to content

Commit

Permalink
Merge pull request #213783 from microsoft/tyriar/213647
Browse files Browse the repository at this point in the history
Align terminal initial hint styles with the editor
  • Loading branch information
Tyriar authored May 29, 2024
2 parents 7f201d4 + f505dce commit 2ee265b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

.monaco-workbench .pane-body.integrated-terminal .contentWidgets .terminal-initial-hint {
.monaco-workbench .pane-body.integrated-terminal .terminal-initial-hint {
color: var(--vscode-input-placeholderForeground);
}
.monaco-workbench .pane-body.integrated-terminal .terminal-initial-hint a {
color: var(--vscode-textLink-foreground)
color: var(--vscode-textLink-foreground);
}

.monaco-workbench .pane-body.integrated-terminal .terminal-initial-hint a,
.monaco-workbench .pane-body.integrated-terminal .terminal-initial-hint .detail {
font-style: italic;
}
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class TerminalInitialHintWidget extends Disposable {
}
};

const hintElement = $('terminal-initial-hint');
const hintElement = $('div.terminal-initial-hint');
hintElement.style.display = 'block';

const keybindingHint = this.keybindingService.lookupKeybinding(TerminalChatCommandId.Start);
Expand Down Expand Up @@ -275,8 +275,7 @@ class TerminalInitialHintWidget extends Disposable {
hintElement.appendChild(after);

const typeToDismiss = localize('hintTextDismiss', 'Start typing to dismiss.');
const textHint2 = $('span', undefined, typeToDismiss);
textHint2.style.fontStyle = 'italic';
const textHint2 = $('span.detail', undefined, typeToDismiss);
hintElement.appendChild(textHint2);

ariaLabel = actionPart.concat(typeToDismiss);
Expand Down

0 comments on commit 2ee265b

Please sign in to comment.