Repository navigation
Search - Blue border on the group expense is cut off when the expense is selected - #50914
Conversation
|
@rayane-djouah Please 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] |
|
@rayane-djouah There are console errors when going to the search screen, but they are not related to our changes. |
|
@rayane-djouah I don't provide videos for native platforms as this case is not relevant for them. |
|
I found a case where the the top border is cut off. It happens only when the item is first in list. We can solve this problem by adding |
|
Hmm I'm not the biggest fan of adding 1px of padding just to account for this. |
|
@shawnborton The I can suggest another solution, But it is different from the changes that I added in my proposal . We can add below style in here. This ensures that the container's inner shadow is not obscured by its children, even if the children are 100% wide and tall. |
|
Can you share a screenshot/video of what that looks like? Thanks! |
It works fine in our case but I have tested and found regression in other places. So that i updated it like below to avoid regress Screen.Recording.2024-10-17.at.19.00.49.mov |
|
@shahinyan11 Wouldn't having a clickable element with a |
@rayane-djouah Do you mean that in this case the blue frame might be cut off, or the clickable element might not work?If so, I have tested both cases and they work. |
@shahinyan11 - Yes, that's what I mean. Perhaps we can use a larger |
|
@rayane-djouah Yes we can. I agree with you |
|
@shahinyan11 Can we apply this style only to the |
We can't apply this style to |
|
@shahinyan11 That sounds good to me. I prefer applying this style to the list items only to avoid any potential regressions. |
|
@rayane-djouah the implementation provided here works onlily for BaseListItem component |
|
@rayane-djouah Do you approve the changes in this comment? |
|
@shahinyan11 We need to apply This should be done instead of applying it to the pressable. This is because the blue border is currently square and does not follow the rounded corners of the list item, as shown in the screenshot below: |
|
@rayane-djouah Thanks for raising the problem, but your suggested variant do not work as expected. I made other changes to fix square corners |
Reviewer Checklist
Screenshots/VideosAndroid: NativeN/A Android: mWeb ChromeN/A iOS: NativeN/A iOS: mWeb SafariN/A MacOS: Chrome / SafariScreen.Recording.2024-10-28.at.9.27.42.PM.movScreen.Recording.2024-10-28.at.9.29.45.PM.movMacOS: DesktopScreen.Recording.2024-10-28.at.9.22.09.PM.mov |
|
Screenshots look good from a design perspective 👍 |
|
✋ 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/arosiclair in version: 9.0.56-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.56-9 🚀
|
| hoverDimmingValue={1} | ||
| hoverStyle={[!item.isDisabled && styles.hoveredComponentBG, hoverStyle]} | ||
| dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true}} | ||
| dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true, [CONST.INNER_BOX_SHADOW_ELEMENT]: true}} |
There was a problem hiding this comment.
We shouldn't had assumed value to be true, this caused #55145



Details
Fixed Issues
$ #50316
PROPOSAL: #50316 (comment)
Tests
Offline tests
Same as in the Tests section.
QA Steps
Same as in the Tests section.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Untitled.mov
MacOS: Desktop
Untitled.mov