-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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: ui dark theme transition #12068
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #12068 +/- ##
==========================================
- Coverage 49.17% 49.03% -0.15%
==========================================
Files 248 246 -2
Lines 42872 42519 -353
==========================================
- Hits 21084 20849 -235
+ Misses 19687 19558 -129
- Partials 2101 2112 +11 ☔ View full report in Codecov by Sentry. |
@include themify($themes) { | ||
color: themed('text-2'); | ||
} | ||
color: $argo-color-gray-8; |
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.
Question: does this apply for light mode only? (Or, maybe this should not be part of the fix?)
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.
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.
It does relate to dark/light mode change
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.
Ok, the text was not showing.
4c1cb75
to
dec7af5
Compare
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.
Works for me www_screencapture_com_2023-3-23_12_34.mp4 |
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 confirmed again and it looks fine to me. Just left a small comment.
const getBGColor = (theme: string): string => { | ||
return theme === 'light' ? '#dee6eb' : '#100f0f'; | ||
}; | ||
|
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.
This could be simplified to one line. Also can we use existing colors for the new two colors? For example, ARGO_GRAY4_COLOR
is very similar to #dee6eb
. Better we don't add more colors to the existing color library.
const getBGColor = (theme: string): string => theme === 'light' ? '#dee6eb' : '#100f0f'; |
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.
Solved, thanks Yi
I have used the color codes from the existing color library - can't use the name in .tsx file as argo-ui can't be imported.
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, excluding the things that Yi mentioned.
/retest |
Signed-off-by: saumeya <saumeyakatyal@gmail.com>
Signed-off-by: saumeya <saumeyakatyal@gmail.com>
Signed-off-by: saumeya <saumeyakatyal@gmail.com>
Head branch was pushed to by a user without write access
6ed04da
to
2466168
Compare
export const Layout = (props: LayoutProps) => ( | ||
<div className={props.pref.theme ? 'theme-' + props.pref.theme : 'theme-light'}> | ||
<div className={`cd-layout ${props.isExtension ? 'cd-layout--extension' : ''}`}> | ||
<Sidebar onVersionClick={props.onVersionClick} navItems={props.navItems} pref={props.pref} /> | ||
{props.pref.theme ? (document.body.style.background = getBGColor(props.pref.theme)) : null} |
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.
* fix: ui dark theme transition Signed-off-by: saumeya <saumeyakatyal@gmail.com> * fix checkbox label Signed-off-by: saumeya <saumeyakatyal@gmail.com> * review comments Signed-off-by: saumeya <saumeyakatyal@gmail.com> * fix lint Signed-off-by: saumeya <saumeyakatyal@gmail.com> --------- Signed-off-by: saumeya <saumeyakatyal@gmail.com>
* fix: ui dark theme transition Signed-off-by: saumeya <saumeyakatyal@gmail.com> * fix checkbox label Signed-off-by: saumeya <saumeyakatyal@gmail.com> * review comments Signed-off-by: saumeya <saumeyakatyal@gmail.com> * fix lint Signed-off-by: saumeya <saumeyakatyal@gmail.com> --------- Signed-off-by: saumeya <saumeyakatyal@gmail.com>
Signed-off-by: saumeya saumeyakatyal@gmail.com
closes #11938
closes #11087
also fixes diff checkboxes "Compact diff" and "Inline diff" are white in white
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: