Skip to content

Commit 5612d1c

Browse files
usernamehwbpasero
authored andcommitted
Fix tab focus related issues (#57821)
1 parent 2bf78e5 commit 5612d1c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css

+8
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@
137137
padding: 0;
138138
}
139139

140+
.monaco-workbench > .part.editor > .content .editor-group-container > .title .tabs-container > .tab.sizing-shrink:focus > .tab-label::after {
141+
opacity: 0; /* when tab has the focus this shade breaks the tab border (fixes https://github.com/Microsoft/vscode/issues/57819) */
142+
}
143+
140144
.monaco-workbench > .part.editor > .content .editor-group-container > .title .tabs-container > .tab.sizing-fit .monaco-icon-label,
141145
.monaco-workbench > .part.editor > .content .editor-group-container > .title .tabs-container > .tab.sizing-fit .monaco-icon-label > .monaco-icon-label-description-container {
142146
overflow: visible; /* fixes https://github.com/Microsoft/vscode/issues/20182 */
@@ -167,6 +171,10 @@
167171
overflow: hidden; /* let the close button be pushed out of view when sizing is set to shrink to make more room... */
168172
}
169173

174+
.monaco-workbench > .part.editor > .content .editor-group-container > .title .tabs-container > .tab.close-button-right.sizing-shrink > .tab-close:focus-within {
175+
overflow: visible;/* fix invisible tab close button on focus: (fixes https://github.com/Microsoft/vscode/issues/41459) */
176+
}
177+
170178
.monaco-workbench > .part.editor > .content .editor-group-container > .title .tabs-container > .tab.dirty.close-button-right.sizing-shrink > .tab-close,
171179
.monaco-workbench > .part.editor > .content .editor-group-container > .title .tabs-container > .tab.close-button-right.sizing-shrink:hover > .tab-close {
172180
overflow: visible; /* ...but still show the close button on hover and when dirty */

0 commit comments

Comments
 (0)