-
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
[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 |
src/styles/styles.js
Outdated
@@ -937,6 +937,7 @@ const styles = { | |||
sidebar: { | |||
backgroundColor: themeColors.sidebar, | |||
height: '100%', | |||
overflow: 'hidden', |
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.
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 |
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.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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)/** 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)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android