Skip to content

Commit 9ea63e8

Browse files
committed
rename suggestions: fix: button changes bg-color on hover to be consistent with sparkle button in scm & cursor type changes to a pointer
fixes microsoft/vscode-copilot#5304
1 parent a8608a2 commit 9ea63e8

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

src/vs/editor/contrib/rename/browser/renameWidget.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@
2828
outline: none;
2929
}
3030

31+
.monaco-editor .rename-box .rename-suggestions-button {
32+
display: flex;
33+
align-items: center;
34+
padding: 3px;
35+
background-color: transparent;
36+
border: none;
37+
border-radius: 5px;
38+
cursor: pointer;
39+
}
40+
41+
.monaco-editor .rename-box .rename-suggestions-button:hover {
42+
background-color: var(--vscode-toolbar-hoverBackground)
43+
}
44+
3145
.monaco-editor .rename-box .rename-label {
3246
display: none;
3347
opacity: .8;

src/vs/editor/contrib/rename/browser/renameWidget.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -906,12 +906,7 @@ class InputWithButton implements IDisposable {
906906
this._domNode.appendChild(this._inputNode);
907907

908908
this._buttonNode = document.createElement('div');
909-
this._buttonNode.style.display = 'flex';
910-
this._buttonNode.style.alignItems = 'center';
911-
this._buttonNode.style.padding = '3px';
912-
this._buttonNode.style.backgroundColor = 'transparent';
913-
this._buttonNode.style.border = 'none';
914-
this._buttonNode.style.borderRadius = '5px';
909+
this._buttonNode.className = 'rename-suggestions-button';
915910
this._buttonNode.setAttribute('tabindex', '0');
916911

917912
this._buttonGenHoverText = nls.localize('generateRenameSuggestionsButton', "Generate new name suggestions");

0 commit comments

Comments
 (0)