Repository navigation
fix(ui): draw the field edges and the touch reveal from tokens - #1311
Merged
Merged
Conversation
The one-pixel edge that the text field, text area, select and chip input draw on focus and in error was an arbitrary shadow value in four components. It is now four shadow tokens in the theme, used as shadow-md-field-*. The action row of a file entry stayed visible on touch devices through an arbitrary media query. It uses the no-hover window variant that the copy button of the snippets card already uses, which leaves the arbitrary-value baseline one entry shorter. Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
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.
Description
The focus and error edges of the outlined and filled fields were drawn with hand-written shadow values, and the file entry actions used a hand-written media query to stay visible on touch. This replaces both with theme tokens and the existing
no-hovervariant, so the style gate baseline shrinks by one arbitrary value. The opacity fades named in task 7.7 were already gone on main.Part of task 7.7 of
migrate-content-to-components. No look changes on pointer devices; on touch the reveal now keys onhover: noneinstead ofpointer: coarse.Type of change
fix- bug fixHow was this tested?
src/style-gate/insetShadow.test.ts(red before the change, green after)src/style-gate,src/anchors,src/components/md,DetailedListEntrynpm run eslint,npm run typecheckChecklist
CLAUDE.md./gradlew buildpasses locally (frontend-only change, not run)