Skip to content

fix(desktop): keep the default project badge at action-label size #4902

Description

@liuxiaocs7

What happened

In Desktop Settings → Workspace, a project row uses a 14px Set as default button before selection. After the project becomes the default, that action is replaced by a generic neutral Badge whose supporting-text typography is 12px.

The resulting Default label is visibly smaller than the action it replaces and than the neighboring row controls. The settled state should retain the action label typography (14px) while keeping the existing neutral badge treatment.

Measured computed styles on main:

  • default-project badge: font-size: 12px
  • neighboring Set as default button: font-size: 14px

How to reproduce

  1. Open Desktop Settings → Workspace.
  2. Add at least two available projects.
  3. Click Set as default on one project.
  4. Compare the resulting Default badge with the Set as default buttons on the other rows.

Expected: the settled Default label uses the same text size and line-height as the action it replaces.

Actual: the badge drops to the generic supporting-text tier and appears smaller.

Environment

  • Maka commit: 90014db94
  • OS: macOS 15.7.3
  • Surface: Desktop
  • Node.js: 24.14.0
  • npm: 11.19.0

Logs, screenshots, or additional context

The project list renders the selected state with Astryx Badge, whose default typography uses --text-supporting-size (12px), while Astryx Button uses --text-label-size (14px).

Acceptance criteria:

  • Scope the typography adjustment to the default-project badge; do not enlarge generic badges globally.
  • Add a real rendered regression check comparing the default badge and neighboring Set as default button computed typography.
  • Preserve the existing neutral badge colors and layout.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions