App: [HOLD for payment 2024-03-13] Incorrect spacing and border radius on receipt thumbnail
DESIGN UPDATES
So this is what I’m thinking we should do for the preview cards. As an outline, here is what we have (Figma file so you can inspect):
I’m thinking of this preview component as two parts:
- upper receipt area
- lower information area
When a receipt is present, I have it so that the upper receipt area and the lower info area overlap by -4px, which basically accounts for that inner border stroke (4px) of the receipt area not adding to the height of the lower info area.
The upper receipt area has a border radius of 16px:
And that means the inner receipt area there has a border radius of 12px (16px minus the 4px border):
For the bottom info area, the whole thing has a padding of 16px (vertically and horizontally):
The eyebrow part (XXXX owes:) should use our label font size, with a line height of 16px. It’s in our text supporting color.
The amount is good as it is, which is our h2 size. The merchant/description line below should use our normal text size and use our text supporting color. It should have a line height of 20px.
In terms of spacing, I’m thinking it goes:
- Eyebrow/top line
- 8px gap
- Amount
- 4px gap
- Merchant/description
- 16px gap
- Button
ORIGINAL ISSUE
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.22-4 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: @shawnborton Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1704274831152639
Action Performed:
Create a receipt request in a workspace
Expected Result:
The receipt image in the request preview should have a border radius that is exactly 4px less than the outer border radius of the request preview card
Actual Result:
It looks like the receipt has the same border radius as the outer preview card.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android: Native
- Android: mWeb Chrome
- iOS: Native
- iOS: mWeb Safari
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~0175c678ba62df22b2
- Upwork Job ID: 1743007697809223680
- Last Price Increase: 2024-01-04
Issue Owner
Current Issue Owner: @grgiaAbout this issue
- Original URL
- State: closed
- Created 6 months ago
- Comments: 46 (33 by maintainers)
Sweet, thanks for clearing that up! Also cc @dubielzyk-expensify since you are working on the preview component, this logic should help guide the designs!
@shawnborton fantastic write up! I should be able to get to this one this week
sorry I thought I accepted offer. Just did now
No regression. This is design inconsistency fix. I don’t think regression test is needed here.
Updating PR now
PR in progress!
We’ve basically been calling it the “Preview” component (cc @Expensify/design). But it might better be called the “Expense & Report Preview” component since it is used for both expenses AND reports.
The way I see it is basically this:
And I think that basically covers it?
@dannymcclain totally! I put the Figma link at the very beginning of my comment here
So this is what I’m thinking we should do for the preview cards. As an outline, here is what we have (Figma file so you can inspect):
I’m thinking of this preview component as two parts:
When a receipt is present, I have it so that the upper receipt area and the lower info area overlap by -4px, which basically accounts for that inner border stroke (4px) of the receipt area not adding to the height of the lower info area.
The upper receipt area has a border radius of 16px:
And that means the inner receipt area there has a border radius of 12px (16px minus the 4px border):
For the bottom info area, the whole thing has a padding of 16px (vertically and horizontally):
The eyebrow part (
XXXX owes:) should use ourlabelfont size, with a line height of 16px. It’s in our text supporting color.The amount is good as it is, which is our h2 size. The merchant/description line below should use our normal text size and use our text supporting color. It should have a line height of 20px.
In terms of spacing, I’m thinking it goes:
Let me know how all of that sounds! cc @Expensify/design for eyes too.