-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Change background color for mWeb scrolling #13278
Conversation
@Santhosh-Sellavel @marcaaron 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] |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2022-12-07.at.12.45.33.AM.movMobile Web - ChromeScreen.Recording.2022-12-07.at.12.56.40.AM.movMobile Web - SafariSimulator.Screen.Recording.-.iPhone.14.-.2022-12-07.at.00.51.41.mp4DesktopScreen.Recording.2022-12-07.at.12.48.26.AM.moviOSN/A AndroidN/A |
web/splash/splash.js
Outdated
@@ -11,6 +11,10 @@ document.addEventListener('DOMContentLoaded', () => { | |||
const root = document.getElementById('root'); | |||
splash.style.backgroundColor = themeColors.appBG; | |||
|
|||
// // set app background color |
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.
// // set app background color | |
// Set app background color |
web/index.html
Outdated
@@ -70,7 +70,7 @@ | |||
<script src="https://polyfill.io/v3/polyfill.min.js?features=default%2CResizeObserver&flags=gated"></script> | |||
<% } %> | |||
</head> | |||
<body> | |||
<body id="bg"> |
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.
Probably don't need an id for this and could do something like:
const body = document.querySelector('body');
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 tried that at first and am just now realizing I used the wrong selector, Thanks!
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.
Waiting for marc's comments needs to be addressed otherwise looks good, tests well!
oops @marcaaron you approved right when I was clicking re-request review, sorry! 😅 |
✋ 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 production by @chiragsalian in version: 1.2.38-6 🚀
|
Details
Changes the body color to match the dark AppBG, so scrolling around on mobile web doesn't show a white background.
I decided to add it to the splash screen script since it is imported with webpack and listens for DOMContentLoaded.
Screen.Recording.2022-12-02.at.9.40.55.AM.mov
Fixed Issues
$ #13085
#13219 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting 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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Screenshots/Videos
Web
Screen.Recording.2022-12-06.at.10.55.54.AM.mov
Mobile Web - Chrome
Screen.Recording.2022-12-06.at.11.00.15.AM.mov
Mobile Web - Safari
Screen.Recording.2022-12-06.at.11.00.59.AM.mov
Desktop
Screen.Recording.2022-12-06.at.11.02.14.AM.mov
iOS
N/A - web only change
Android
N/A - web only change