From 2b3e266620ca7c919582883fa20bbaade99a4a38 Mon Sep 17 00:00:00 2001 From: mdbase release automation Date: Wed, 25 Nov 2026 14:02:04 +1100 Subject: [PATCH] fix(editor): tab strip follows the Editor's theme (panels 0.4.0) @mdbase-dev/panels 0.3.1 declared its colour defaults on .mp-workspace and forced color-scheme: light dark there, so the Editor's --mp-* theme on .editor-panels never applied and light-dark() inside the workspace followed the system: an Editor in light mode on a dark system showed a dark tab strip with a near-invisible active title. 0.4.0 (mdbase-dev/mdbase-panels#1) takes ancestor themes and the page's colour scheme, so the Editor's existing styles apply unchanged. --- apps/editor/package.json | 2 +- changelog.d/editor-light-mode-tabs.md | 3 +++ pnpm-lock.yaml | 10 +++++----- pnpm-workspace.yaml | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 changelog.d/editor-light-mode-tabs.md diff --git a/apps/editor/package.json b/apps/editor/package.json index 7390ac361..5963e325b 100644 --- a/apps/editor/package.json +++ b/apps/editor/package.json @@ -51,7 +51,7 @@ "@lingui/react": "6.9.0", "@mdbase-dev/connect-protocol": "file:vendor/mdbase-dev-connect-protocol-0.1.0-beta.152-3d3f95b80c9a.tgz", "@mdbase-dev/i18n": "workspace:*", - "@mdbase-dev/panels": "0.3.1", + "@mdbase-dev/panels": "0.4.0", "@mdbase-dev/sdk": "file:vendor/sdk-6d60e43d-production-0.2.13.tgz", "@mdbase-dev/sdk-self-hosted": "file:vendor/sdk-self-hosted-9df3f92db395da1a1c61744f74846f756b6852511619e696c7c6bb9c32a7308f.tgz", "@mdbase-dev/ui": "0.2.9", diff --git a/changelog.d/editor-light-mode-tabs.md b/changelog.d/editor-light-mode-tabs.md new file mode 100644 index 000000000..17cfba8ff --- /dev/null +++ b/changelog.d/editor-light-mode-tabs.md @@ -0,0 +1,3 @@ +## Fixed + +- The Editor's tab strip follows the Editor's own light or dark theme. With the Editor set to light on a system in dark mode, the tab strip showed dark, with the active tab's title close to invisible; in dark mode it used the panels library's stock colours rather than the Editor's. The Editor now uses `@mdbase-dev/panels` 0.4.0, whose workspace takes its colours from an ancestor and follows the page's colour scheme. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1d574f725..1dd8738bd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -202,8 +202,8 @@ importers: specifier: workspace:* version: link:../../packages/i18n '@mdbase-dev/panels': - specifier: 0.3.1 - version: 0.3.1(react-dom@19.3.0(react@19.3.0))(react@19.3.0) + specifier: 0.4.0 + version: 0.4.0(react-dom@19.3.0(react@19.3.0))(react@19.3.0) '@mdbase-dev/sdk': specifier: file:vendor/sdk-6d60e43d-production-0.2.13.tgz version: file:apps/editor/vendor/sdk-6d60e43d-production-0.2.13.tgz @@ -2232,8 +2232,8 @@ packages: resolution: {integrity: sha512-F0hhr8t6Z4FpbE5QpLEAt//EfTg+VuUrKpg1Iw6+l2fQFptvyaUlQc2VATTP8EGs5cgkBnAqHqOKMkYLpmPhgw==, tarball: file:apps/editor/vendor/mdbase-dev-connect-protocol-0.1.0-beta.152-3d3f95b80c9a.tgz} version: 0.1.0-beta.152 - '@mdbase-dev/panels@0.3.1': - resolution: {integrity: sha512-RLTdFU5o5ZVAHzpja/rpoWhTgtCFPa0WqEyK7Z5B4zn0JsEzV2XBLpBwlWpFpHdhtbiFc4OVHBx8365kqaHE9Q==} + '@mdbase-dev/panels@0.4.0': + resolution: {integrity: sha512-LnFg67JqBMEdtnaJvpBsk2DTgded9M7IdDktR3IqGB8qpSXuGxpGffM5cLcERvDWt3/bd99/1gDjTgkJN+ufWA==} peerDependencies: react: ^18.0.0 || ^19.0.0 react-dom: ^18.0.0 || ^19.0.0 @@ -8131,7 +8131,7 @@ snapshots: '@noble/hashes': 2.4.0 yaml: 2.9.1 - '@mdbase-dev/panels@0.3.1(react-dom@19.3.0(react@19.3.0))(react@19.3.0)': + '@mdbase-dev/panels@0.4.0(react-dom@19.3.0(react@19.3.0))(react@19.3.0)': optionalDependencies: react: 19.3.0 react-dom: 19.3.0(react@19.3.0) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 3e75c56e6..87d46ed2c 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -75,7 +75,7 @@ auditConfig: - GHSA-fc5q-39xc-vjpf minimumReleaseAgeExclude: - - '@mdbase-dev/panels@0.3.1' + - '@mdbase-dev/panels@0.4.0' - '@mdbase-dev/ui@0.2.9' patchedDependencies: