Repository navigation
fix(editor): tab strip follows the Editor's theme (panels 0.4.0) - #1915
Merged
Merged
Conversation
@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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With the Editor set to light on a system in dark mode, the tab strip rendered dark and the active tab's title was close to invisible. In dark mode it used the panels library's stock greys instead of the Editor's colours.
Cause — in
@mdbase-dev/panels0.3.1:.mp-workspaceitself, so the Editor's--mp-*theme on.editor-panels(an ancestor) never applied.color-scheme: light dark, solight-dark()inside it (the Editor's own tokens included) followed the system instead of the Editor'sdata-theme.Fix — mdbase-dev/mdbase-panels#1, released as 0.4.0:
:where(:root), so a theme set on any ancestor applies.color-scheme.This PR only moves the Editor to 0.4.0; the Editor's existing styles apply unchanged. 0.4.0 is the first panels release from its tag workflow, published with provenance via an npm trusted publisher added today.
Checks
pnpm ci:localpassed.--project chromium: 230 passed.Release note:
changelog.d/editor-light-mode-tabs.md.