Skip to content

Give outline trigger buttons the field's body type, matching Select - #222

Open
andrewhuhh wants to merge 1 commit into
mainfrom
fix/trigger-value-weight
Open

andrewhuhh wants to merge 1 commit into
mainfrom
fix/trigger-value-weight

Conversation

@andrewhuhh

@andrewhuhh andrewhuhh commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Genuine bug. An outline Button with layout="trigger" is a value control: DatePicker, DateRangePicker and outline menu triggers use it to show a chosen value, and the button docs place it beside SelectTrigger to show that the two match. It still rendered its value in the button label type (weight 500), while SelectTrigger uses the field's body type (weight 400). So a date picker in a form read heavier than the select next to it.

.triggerLayout[data-variant="outline"] now takes the body font family, weight and letter spacing, the same tokens .field uses. Ghost triggers stay actions and keep the label type: the floating action bar's "More" and the top bar's account menu are unchanged, so their baselines don't move.

Baselines change for the button trigger-layout example, the date and date-range pickers, and the select badge example, which includes a date-range picker.

Before (the trigger on the left is heavier than the SelectTrigger beside it):

Before

After:

After

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@infisical-review-police

Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-cipher-222-give-outline-trigger-buttons-the-field-s-body-type-matching

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

@capy-ai capy-ai Bot 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.

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Outline buttons with layout="trigger" now use the same font family, weight, and letter spacing as fields.

  • Outline trigger buttons now show values in the field's body type.

Review was source-only. Visual capture was blocked by missing local dependencies. Generated image baselines were excluded as requested.

Reviews (1) · Last reviewed commit: "Give outline trigger buttons the field's..." · Reviewed by Greptile

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant