Skip to content

fix(ui): draw the field edges and the touch reveal from tokens - #1311

Merged
TheMeinerLP merged 1 commit into
mainfrom
fix/ui-opacity-fades
Nov 23, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
fix/ui-opacity-fades

Conversation

@TheMeinerLP

Copy link
Copy Markdown

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-hover variant, 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 on hover: none instead of pointer: coarse.

Type of change

  • fix - bug fix

How was this tested?

  • New src/style-gate/insetShadow.test.ts (red before the change, green after)
  • vitest on src/style-gate, src/anchors, src/components/md, DetailedListEntry
  • npm run eslint, npm run typecheck

Checklist

  • Commit messages follow the Conventional Commits convention documented in CLAUDE.md
  • Tests cover the change
  • ./gradlew build passes locally (frontend-only change, not run)
  • Documentation and configuration samples are updated if the change is user-facing (not user-facing docs)
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

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>
@TheMeinerLP TheMeinerLP added the ci:e2e Run the dashboard end-to-end tests label Nov 23, 2026
@TheMeinerLP
TheMeinerLP added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 41794bc Nov 23, 2026
56 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix/ui-opacity-fades branch November 23, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the dashboard end-to-end tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant