-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 list on some page doesn't show scroll bar #34953
Conversation
Another video showing the scroll bar on other pages. Screen.Recording.2024-01-23.at.16.35.12.mov |
@@ -474,7 +472,6 @@ function BaseSelectionList({ | |||
onScrollBeginDrag={onScrollBeginDrag} | |||
keyExtractor={(item) => item.keyForList} | |||
extraData={focusedIndex} | |||
indicatorStyle={theme.white} |
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.
indicatorStyle
only accepts "black" | "white" | "default" | undefined
, but the theme color is a hex string (#FFFFFF), so I remove it because it's invalid
The reason I notice this indicatorStyle
is because, in BaseOptionsSelector, we set it to "white"
indicatorStyle="white" |
and this makes the scroll bar unnoticeable for native on light mode, so we need to test it on dark mode.
Btw, indicatorStyle
is only available for iOS. The question is, do we want to dynamically change the indicatorStyle
based on the selected theme for iOS only?
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 think this is probably a separate issue unrelated to whether or not the scrollbar is visible based on the issue description. However, if you want to tackle this here, then the index.ios.tsx
should be updated with the conditional check since it's an iOS-only prop.
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.
Any thoughts on this, @MariaHCD?
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.
The recent TS migration PR corrected the value by passing "white".
I agree that we can handle this scrollbar color in a separate issue.
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.
Agreed that the scrollbar color is out of scope for this PR and issue
Reviewer Checklist
Screenshots/VideosAndroid: Native34953-android-native.mp4Android: mWeb Chrome34953-android-chrome.mp4iOS: Native34953-ios-native.mp4iOS: mWeb Safari34953-ios-safari.mp4MacOS: Chrome / Safari34953-web.mp4MacOS: Desktop34953-desktop.mp4 |
@bernhardoj Please resolve merge conflicts. |
Done |
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.
LGTM.
✋ 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/MariaHCD in version: 1.4.33-0 🚀
|
one of the testers running this PR on public domain consistently is getting a crash, but team is not able to reproduce across various devices . https://github.com/Expensify/App/assets/43995119/2b0654b8-4229-4f54-a321-1101a3578821 |
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.33-5 🚀
|
I'm unable to reproduce it |
Details
We hide the scroll bar by default but now we want to enable it by default.
Fixed Issues
$ #34762
PROPOSAL: #34762 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
(for Android & iOS, test it with dark mode)
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-01-23.at.16.42.36.mov
Android: mWeb Chrome
Screen.Recording.2024-01-23.at.16.07.19.mov
iOS: Native
Screen.Recording.2024-01-23.at.16.54.01.mov
iOS: mWeb Safari
Screen.Recording.2024-01-23.at.16.08.22.mov
MacOS: Chrome / Safari
Screen.Recording.2024-01-23.at.16.01.14.mov
MacOS: Desktop
Screen.Recording.2024-01-23.at.16.02.32.mov