提交 c1946bdb 编写于 作者: B Benjamin Pasero

splitview: use opacity to hide actions so that it does not break keyboard a11y

上级 b14258e8
......@@ -241,7 +241,7 @@ export class AbstractCollapsibleView extends HeaderView {
});
this.focusTracker.addBlurListener(() => {
setTimeout(() => dom.removeClass(this.header, 'focused')); // delay to give other components a chance to react
dom.removeClass(this.header, 'focused');
});
}
......
......@@ -29,12 +29,12 @@
.monaco-workbench .viewlet .collapsible.header .actions {
float: right;
padding-right: 8px;
display: none;
opacity: 0; /* use opacity so that actions are still keyboard accessible */
}
.monaco-workbench .viewlet .collapsible.header:hover .actions,
.monaco-workbench .viewlet .collapsible.header.focused .actions {
display: block;
opacity: 1; /* use opacity so that actions are still keyboard accessible */
}
.monaco-workbench .viewlet .collapsible.header .actions .action-label {
......
......@@ -36,6 +36,7 @@
.explorer-viewlet .monaco-count-badge {
padding: 1px 6px;
margin-left: 6px;
border-radius: 0; /* goes better when ellipsis shows up on narrow sidebar */
}
.explorer-viewlet .explorer-empty-view {
......
......@@ -185,7 +185,8 @@ export class WorkingFilesView extends AdaptiveCollapsibleViewletView {
if (dirty === 0) {
$(this.dirtyCountElement).hide();
} else {
$(this.dirtyCountElement).show().text(nls.localize('dirtyCounter', "{0} unsaved", dirty));
const label = nls.localize('dirtyCounter', "{0} unsaved", dirty);
$(this.dirtyCountElement).show().text(label).title(label);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册