Skip to content

refactor(ui): use the code role for monospace text beside body medium - #1251

Merged
TheMeinerLP merged 1 commit into
mainfrom
fix/mono-body
Nov 23, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
fix/mono-body

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

Part of migrate-content-to-components task 5.9. Three places drew monospace text with the font-mono class next to a body-medium role. They now use the md-code-medium role, which has identical size, line height and weight, so the dashboard looks the same. The second factor card no longer appears in the pending list of the code role test. AdjustmentsModal and FileUpload are left out on purpose (decision 274).

Type of change

  • refactor - internal change without behaviour change

How was this tested?

  • vitest on src/styles, src/anchors, src/style-gate, the account and access check components: 894 passed

Checklist

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

The second factor seed and recovery codes, and the step node of the
permission check, wrote font-mono next to a body-medium role. They now
take md-code-medium, which has the same size, line height and weight
in the monospace family, so nothing changes on screen. The migrated
second factor card leaves the pending list of the code role test.

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 ca99616 Nov 23, 2026
54 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix/mono-body branch November 23, 2026 07:40
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