chore: Polish MainActionButton to match designs#27342
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Performance Test Selection: |
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
| borderRadius: 12, | ||
| paddingHorizontal: 4, | ||
| paddingVertical: 16, | ||
| paddingVertical: 12, |
There was a problem hiding this comment.
Skeleton height not updated after padding change
Medium Severity
The SKELETON_BUTTON_HEIGHT in TokenDetailsActions.tsx is still 74, derived from the old paddingVertical of 16 (comment on line 15: 16 * 2 + 24 + 2 + ~16 = 74). With paddingVertical now changed to 12, the correct height is approximately 12 * 2 + 24 + 2 + 16 = 66. The stale skeleton height causes a visible layout shift when the loading skeleton is replaced by the actual buttons.





Description
This PR refines the main action buttons to match the design specs. Update the vertical padding from
16px>12pxto improve the spacing.Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk visual-only spacing change that updates styles and corresponding Jest snapshots without altering behavior or data flow.
Overview
Polishes
MainActionButtonspacing by reducingpaddingVerticalfrom16to12inMainActionButton.styles.tsto better match design specs.Updates Jest snapshots for
MainActionButtonand screens that render it (e.g.,AccountsMenuscan button andAssetDetailsActionsbuttons) to reflect the new padding.Written by Cursor Bugbot for commit 0950cef. This will update automatically on new commits. Configure here.