-
Notifications
You must be signed in to change notification settings - Fork 36
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 (styles): Update border color of Search Relevance to be compliant with Dark Mode #315
Conversation
Signed-off-by: Nicholas Ung <nicholasung22@gmail.com>
Signed-off-by: Nicholas Ung <nicholasung22@gmail.com>
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.
Nice work! Left some small comments to consider
@@ -372,7 +362,7 @@ exports[`Flyout component Renders flyout component 1`] = ` | |||
} | |||
showPrintMargin={false} | |||
tabSize={2} | |||
theme="sql_console" | |||
theme="textmate" |
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.
Change to textmate
should've been merged in, may need a rebase? Or did this come up only from this PR?
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.
Yeah, I think it needs a rebase. Thanks for catching that, I'll look into it!
border-right: 0; | ||
} | ||
|
||
.left-border { | ||
border-left: 0; | ||
} |
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.
Could this be in a single class?
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.
Yeah, I was actually thinking about putting them in one called "left-right-borders" but wasn't sure if there was a specific naming convention I needed to follow? If that works, I'll make the change.
Signed-off-by: Nicholas Ung <nicholasung22@gmail.com>
Signed-off-by: Nicholas Ung <nicholasung22@gmail.com>
Signed-off-by: Nicholas Ung <nicholasung22@gmail.com>
Signed-off-by: Nicholas Ung <nicholasung22@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #315 +/- ##
==========================================
- Coverage 89.95% 87.08% -2.88%
==========================================
Files 16 16
Lines 209 209
Branches 43 43
==========================================
- Hits 188 182 -6
- Misses 20 26 +6
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
… with Dark Mode (#315) * Update horizontal and vertical rules to comply with Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> * Update test snapshots Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> * Update horizontal and vertical rules to comply with Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> * Update test snapshots Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> * Update class name for border Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> * Update test snapshots Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> --------- Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> (cherry picked from commit acb3dd8) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… with Dark Mode (#315) (#319) * Update horizontal and vertical rules to comply with * Update test snapshots * Update horizontal and vertical rules to comply with * Update test snapshots * Update class name for border * Update test snapshots --------- (cherry picked from commit acb3dd8) Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… with Dark Mode (#315) * Update horizontal and vertical rules to comply with Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> * Update test snapshots Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> * Update horizontal and vertical rules to comply with Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> * Update test snapshots Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> * Update class name for border Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> * Update test snapshots Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> --------- Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> (cherry picked from commit acb3dd8) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… with Dark Mode (#315) (#328) * Update horizontal and vertical rules to comply with * Update test snapshots * Update horizontal and vertical rules to comply with * Update test snapshots * Update class name for border * Update test snapshots --------- (cherry picked from commit acb3dd8) Signed-off-by: Nicholas Ung <nicholasung22@gmail.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Fixes hard-coded horizontal and vertical rules that previously made borders bright white in dark mode. Panels had
hasBorder
property set tofalse
so that was adjusted, and$ouiBorderColor
was used to color the borders instead.Issues Resolved
Closes #306
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Screenshots
Before
Bright white borders while site is in dark mode:
After
Subtle borders with
$ouiBorderColor
in dark mode: