next: use type-scale weight for tab overflow hint

Closed
TE
22d ago
+1-1

The cmux-next Type scale check fails on TabOverflowHintView.swift:51 because the new overflow hint button uses a raw .medium font weight. This failure also appeared on UI PRs #21069, #21051, and #21053 after they incorporated the same base change.

Use Typography.system with the existing caption size and TypeScale.emphasis for the button. This keeps the hint within the shared type scale and avoids creating a fresh NSFont in applyTokens().

Validation: python3 -I scripts/cmux-next/check-swift-type-scale.py and git diff --check pass. Native build remains with CI/fleet.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Fixes the cmux-next type scale check failure on the tab overflow hint button by using Typography.system with TypeScale.emphasis instead of a raw NSFont weight.

  • Removes the need to create a fresh NSFont in applyTokens().