-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: standardize button icon sizes to md (default) for bottomsheets, navigation and modals #20547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
georgewrmarshall
wants to merge
2
commits into
main
Choose a base branch
from
button-icon-sizes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+519
−538
Conversation
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
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. |
|
||
// Defaults | ||
export const DEFAULT_BUTTONICON_SIZE = ButtonIconSizes.Sm; | ||
export const DEFAULT_BUTTONICON_SIZE = ButtonIconSizes.Md; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
No E2E Smoke Needed
If the PR does not need E2E smoke test run
No QA Needed
Apply this label when your PR does not need any QA effort.
no-changelog
no-changelog Indicates no external facing user changes, therefore no changelog documentation needed
size-S
team-design-system
All issues relating to design system in Mobile
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.
Description
Updated button icon sizes to md (default) for bottomsheets, navigation and modals as part of design system standardization. Since md is the default size, this involved removing explicit md size specifications and cleaning up unused
ButtonIconSizes
imports that were causing ESLint errors.What is the reason for the change?
Design system standardization requires consistent button icon sizes across bottomsheets, navigation and modals.
What is the improvement/solution?
ButtonIconSizes
imports that were no longer neededChangelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/DSYS-226
Reference: https://consensys.slack.com/archives/C0354T27M5M/p1758912397636659
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Standardizes ButtonIcon to md as the default size, removes explicit size props/imports in headers/modals, and updates snapshots to reflect 28x28 buttons with 20x20 icons.
DEFAULT_BUTTONICON_SIZE
toButtonIconSizes.Md
incomponents/Buttons/ButtonIcon/ButtonIcon.constants.ts
.size
prop andButtonIconSizes
imports from headers/modals (e.g.,HintModal
,PermissionsSummary
,MultichainPermissionsSummary
,gas-fee-token-modal
,gas-modal-header
, typed-sign simulationvalue
displays).24x24
to28x28
and icons from16x16
to20x20
(e.g.,CellSelectWithMenu
,ListItemMultiSelect*
,ButtonIcon
, variousBridge
,Ramp
,Earn
,Stake
, selectors, modals, and lists).Written by Cursor Bugbot for commit 275add5. This will update automatically on new commits. Configure here.