fix: add drop shadow for floating buttons#81951
Conversation
|
@dannymcclain @Ollyws One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@dannymcclain @cristipaval One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
src/styles/index.ts
Outdated
| floatingActionButtonSmall: { | ||
| width: variables.componentSizeNormal, | ||
| height: variables.componentSizeNormal, | ||
| boxShadow: theme.shadow, |
There was a problem hiding this comment.
❌ CONSISTENCY-3 (docs)
Adding boxShadow to floatingActionButtonSmall creates redundancy. This style is always used together with floatingActionButton (which now has boxShadow), causing the shadow to be defined twice.
Suggested fix:
Remove boxShadow from floatingActionButtonSmall. The shadow from floatingActionButton will apply correctly since these styles are merged in usage:
// In FloatingActionButton.tsx and FloatingReceiptButton.tsx
style={[styles.floatingActionButton, ..., styles.floatingActionButtonSmall, ...]}The floatingActionButtonSmall style should only define size properties (width, height) as it's a modifier style, not a base style.
Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
|
What's the difference between Screenshots look good to me though 👍 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8facad9f4b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product
@shawnborton floatingActionButtonSmall is used with wider screens where the buttons are on the bottom left hand side, whereas floatingActionButton is used on mobile platforms where the buttons are on the right hand side. |
|
@daledah we should also add |
|
Both mobile buttons should have the drop shadow, but neither of the buttons in the desktop left hand bar should have the drop shadow. 👍 |
|
Yup, what Danny said! |
|
@Ollyws i updated |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
Reviewer Checklist
Screenshots/Videos |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @cristipaval has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.3.20-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.20-6 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.20-6 🚀
|






Explanation of Change
Fixed Issues
$ #81198
PROPOSAL: #81198 (comment)
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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari