From e29f1636552e276d48958059d04e7ea2bfa8d49f Mon Sep 17 00:00:00 2001 From: Johannes Faltermeier Date: Thu, 17 Aug 2023 16:16:12 +0200 Subject: [PATCH] Submenu contribution to editor/title and view/title not working #12706 * fix icon --- .../src/browser/shell/tab-bar-toolbar/tab-bar-toolbar.tsx | 4 ++++ packages/core/src/browser/style/tabs.css | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/core/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar.tsx b/packages/core/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar.tsx index f06b1b82d833f..491a26a4f2529 100644 --- a/packages/core/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar.tsx +++ b/packages/core/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar.tsx @@ -224,6 +224,10 @@ export class TabBarToolbar extends ReactWidget { if (this.commandIsToggled(item.command)) { classNames.push('toggled'); } + } else { + if (this.isEnabled(item)) { + classNames.push('enabled'); + } } return classNames; } diff --git a/packages/core/src/browser/style/tabs.css b/packages/core/src/browser/style/tabs.css index ea2f48940e510..7a8cc548080cc 100644 --- a/packages/core/src/browser/style/tabs.css +++ b/packages/core/src/browser/style/tabs.css @@ -459,6 +459,10 @@ cursor: pointer; } +.p-TabBar-toolbar .item.enabled .action-label::before { + display: flex; +} + .p-TabBar-toolbar :not(.item.enabled) .action-label { background: transparent; cursor: default;