Repository navigation
Give outline trigger buttons the field's body type, matching Select - #222
Open
andrewhuhh wants to merge 1 commit into
Open
andrewhuhh wants to merge 1 commit into
andrewhuhh wants to merge 1 commit into
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
💬 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. |
[Low impact] The PR appears safe to merge; no actionable issues were found.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Genuine bug. An outline
Buttonwithlayout="trigger"is a value control:DatePicker,DateRangePickerand outline menu triggers use it to show a chosen value, and the button docs place it besideSelectTriggerto show that the two match. It still rendered its value in the button label type (weight 500), whileSelectTriggeruses 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.fielduses. 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):
After: