-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Fix select all checkbox alignment #82099
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
Fix select all checkbox alignment #82099
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
| backgroundColor: theme.componentBG, | ||
| }, | ||
|
|
||
| baseListHeaderWrapperStyle: { |
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.
❌ CONSISTENCY-2 (docs)
The hardcoded pixel values (40, 12, 20) are magic numbers without clear documentation of their purpose or relationship to the design system.
Suggested fix: Reference existing spacing constants from the theme or add comments explaining these specific values:
baseListHeaderWrapperStyle: {
// Horizontal padding to align checkbox header with content
paddingHorizontal: 40,
paddingVertical: 12,
paddingBottom: 20,
},Or better yet, if these values correspond to existing spacing utilities:
baseListHeaderWrapperStyle: {
paddingHorizontal: spacing.large, // or reference to existing ph9/ph10 values
paddingVertical: spacing.small,
paddingBottom: spacing.medium,
},Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
src/styles/index.ts
Outdated
| }, | ||
|
|
||
| baseListHeaderWrapperStyle: { | ||
| paddingHorizontal: 40, |
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.
styles.ph9 (36) was original value for long time. Do you have idea which PR recently caused regression?
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.
I found offending PR #79296
|
It seems like the Before is more correct? |
|
OK @situchan do you think we should change the negative margin on |
I think so. We should not touch header. |
|
@situchan updated, left the refactor with default styles for |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: mWeb Safari |
yes, confirmed. This PR is technically fixing regression from #79296 which increased 4px padding horizontally.
|
|
Sounds great, thanks for confirming 👍 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.3.18-0 🚀
|








Explanation of Change
A follow up for #81527, fixes checkbox alignment on other pages.
Fixed Issues
$ #80133
PROPOSAL:
Tests
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
MacOS: Chrome / Safari
Screen.Recording.2026-02-11.at.11.27.47.mov