Skip to content

🎨 feat: Add Secondary Label Variant and Spinner Tone - #16837

Merged
berry-13 merged 1 commit into
devfrom
berry-13/primitives-label-spinner
Oct 7, 2026
Merged

berry-13 merged 1 commit into
devfrom
berry-13/primitives-label-spinner

Conversation

@berry-13

@berry-13 berry-13 commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Label has a default (primary ink) and a section eyebrow, so ten call sites that want the default label size, leading and weight in the secondary ink restyle the color with a class, and Spinner callers pin text-text-primary or text-text-secondary the same way. Both are color overrides of a primitive, which the design lint reports and a theme cannot reach.

Label gains variant="secondary" (default metrics, secondary ink) and Spinner gains a tone prop (current, primary, secondary). Both defaults reproduce today's rendering exactly: Label keeps default, Spinner keeps current, which adds no class.

Type of change

  • Feature

Testing

Automated tests:

  • npx jest src/components/Label.spec.tsx src/svgs/__tests__/Spinner.spec.tsx (packages/client): 18 passed
  • eslint, prettier and sort-imports on the four touched files: clean

Manual checks: the existing variants and the default Spinner output are unchanged by construction (additions only).

Risk / compatibility

None. New opt-in variants; no existing call site changes.

Checklist

  • I reviewed my own changes
  • Relevant tests have been added or updated
  • Existing relevant tests pass
  • The change does not introduce new warnings or errors
  • Required documentation PR: N/A

Copilot AI balanced review requested due to automatic review settings October 6, 2026 14:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T09:59:01.597798Z ad12919 New commits
🔒 Security Review ✅ Completed 2026-10-06T14:53:58.831865Z 5c15961 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@berry-13
berry-13 force-pushed the berry-13/primitives-label-spinner branch from 5c15961 to ad12919 Compare October 7, 2026 09:56
@berry-13
berry-13 merged commit 38a3eb0 into dev Oct 7, 2026
43 checks passed
@berry-13
berry-13 deleted the berry-13/primitives-label-spinner branch October 7, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants