Repository navigation
experimental theme: a setting that changes a part's resting look keeps its hover and keyboard focus visible... - #13235
Merged
josephfarina merged 1 commit intoNov 21, 2026
Conversation
…s its hover and keyboard focus visible: a resting background shorthand gives the hover and press their layer back, Core's rings go over a resting shadow, and a resting outline gives the focus state Core's focus outline back
josephfarina
requested review from
cixzhang and
imdreamrunner
as code owners
November 21, 2026 07:07
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
Contributor
Author
This was referenced Nov 21, 2026
Closed
josephfarina
added a commit
that referenced
this pull request
Nov 21, 2026
… a state the theme sets, and keeps the theme's own focus outline properties Fixes the cases from #13235: a resting background with no --when replaced a hover background the theme set for one variant with Core's overlay; the written-back press had no enabled guard, a combined --when got no hover or press back, and the written-back hover had no (hover: hover) condition; and any focus outline setting stopped Core's focus outline from coming back, so outline-color on focus then outline none left no visible keyboard focus. Each restored state now writes background-image: revert-layer in the setting's own scope, so Core's own rule shows through.
josephfarina
added a commit
that referenced
this pull request
Nov 21, 2026
… a state the theme sets, and keeps the theme's own focus outline properties Fixes the cases from #13235: a resting background with no --when replaced a hover background the theme set for one variant with Core's overlay; the written-back press had no enabled guard, a combined --when got no hover or press back, and the written-back hover had no (hover: hover) condition; and any focus outline setting stopped Core's focus outline from coming back, so outline-color on focus then outline none left no visible keyboard focus. Each restored state now writes background-image: revert-layer in the setting's own scope, so Core's own rule shows through.
josephfarina
added a commit
that referenced
this pull request
Nov 21, 2026
… a state the theme sets, and keeps the theme's own focus outline properties Fixes the cases from #13235: a resting background with no --when replaced a hover background the theme set for one variant with Core's overlay; the written-back press had no enabled guard, a combined --when got no hover or press back, and the written-back hover had no (hover: hover) condition; and any focus outline setting stopped Core's focus outline from coming back, so outline-color on focus then outline none left no visible keyboard focus. Each restored state now writes background-image: revert-layer in the setting's own scope, so Core's own rule shows through.
4 tasks done
Contributor
Author
|
Reverted on the theme editor working branch: it was held there on an open review finding past the deadline. Please re-open it as one pull request against main with the fix folded in. |
This was referenced Nov 21, 2026
github-actions
Bot
deleted the
josephfarina/editor-rest-look-keeps-states
branch
November 22, 2026 06:04
This branch was successfully deployed
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.
User impact
astryx experimental theme editorkeeps a part's hover and keyboard focus visible when a setting changes its resting look: a resting background shorthand gives the part's hover and press Core's layer back; Core's focus and hover rings are drawn over a resting shadow, so a bevel never covers them; and a resting outline gives the part's focus state Core's focus outline back. A state the theme sets itself keeps what it set.Problem and solution fit
The theme editor is experimental. Each change is one behaviour of its
setorhowcommands, with its own test, and touches nothing outsidepackages/cli/api/theme-edit.Smallest restoration
Evidence
Tests on this layer (CI=1, applied on its base in order):
packages/cli/api/theme-edit/theme-part-state-wins-build.test.mjspackages/cli/api/theme-edit/theme-part-text-sits-core.test.mjspackages/cli/api/theme-edit/theme-rest-look-keeps-hover-and-focus.test.mjspackages/cli/api/theme-edit/theme-resting-shadow-part-rings.test.mjspackages/cli/api/theme-edit/theme-state-part-states-changed.test.mjspackages/cli/api/theme-edit/theme-titles-shadows-alpha-state.test.mjsThe whole
packages/cli/api/theme-editsuite on the top of this stack fails only what its base fails in the same environment (app-copy and compile-check fixtures); eslint and prettier are clean on the changed files.Scope
Components: theme editor (CLI, experimental)
preflight: pass e12e7e9 (review deferred to batch: subagent cap)
Replaces #12766, which merged into the theme-editor branch and was reverted there before its replay; same commit.
replay: worse 0 at e12e7e9