[Core Branding] Soften Dark Mode Colors / White#13583
Conversation
|
A note, right now the border is added to the container, which I show here: Screen.Recording.2022-12-14.at.10.49.47.AM.movThe sidebar is composed of the Drawer Navigator, the "Chats" header and then a FlatList with all of the chats. I'm thinking there's a better way to do this so we could have the correct rounded edges without needing the right border? |
|
Yup that's right, let's only do the rounded borders/stroke for web. |
|
In terms of the border... the idea there is that we could use the border color as a way to make it feel like the sidebar is inset from the edges of the entire app view. Alternatively, we could just give the sidebar a rounded border radius and give it an outer margin of say 8px on the top, left, and bottom. My thinking was that the border color could be an easier way to pull that off, but I am open to trying out a different method! |
Ah yeah, that's why I was thinking we could remove the right border but I suppose that's why we are getting the strange rounded shape on the top right. So maybe we should try a margin method on the outer sides, and just round the container with no border stroke?
Oh yeah, great catch here. Can we push those buttons down and to the right a bit so they sit within the slightly lighter green part? |
|
Looks great on desktop... are we able to make them responsive and move back up to the top/left on smaller viewports? |
I don't think we can move the traffic light buttons dynamically unless we remove the OS ones and add our own. I didn't push the traffic light position updates, but here's the current look with using margin: Screen.Recording.2022-12-14.at.4.52.29.PM.mov |
|
I don't mind extra work if it's worth doing! |
|
Hmm yeah, I think given that we're uncovering a lot of additional considerations for the rounded LHN, it makes sense to properly suss that out in Figma & Slack first before diving right into changes here. So I think I would recommend we unwind those changes (sorry about that!) and then this way, this PR becomes just about color changes and not so much UI changes. I still think it might look nice to get rid of the right border on the LHN, so maybe we can still plan to do that? |
|
ofc np! I just committed those changes + added web screenshots to description |
| sidebar: { | ||
| backgroundColor: themeColors.sidebar, | ||
| height: '100%', | ||
| overflow: 'hidden', |
There was a problem hiding this comment.
Maybe we don't need this anymore since we got rid of the border styles?
|
Reverted to color changes only, so opening up for review ! |
|
@mananjadhav @techievivek 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/Videos |
techievivek
left a comment
There was a problem hiding this comment.
Looks good, not going to wait for Manan given this is just a styling fix and Shawn has already approved it.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
Reviewer Checklist
Screenshots/Videos@techievivek I did review and the testing for all platforms |
|
My IP finally worked and hence I've uploaded the screenshots for mobile web platforms too. |
|
@mananjadhav Aaah, sorry, I didn't realize that your IP was blocked. Thanks for reviewing this. |
|
🚀 Deployed to staging by @techievivek in version: 1.2.42-0 🚀
|
|
🚀 Deployed to production by @yuwenmemon in version: 1.2.42-2 🚀
|
































Details
This PR modifies our default brand colors and removes the 1px right border from the LHN. Should also fix the white background behind LHN that sometimes flashes while loading the app.
Current Branch:
Fixed Issues
$ #13564
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android