Skip to content
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

Merged
merged 7 commits into from
Oct 6, 2023

Conversation

nung22
Copy link
Contributor

@nung22 nung22 commented Oct 6, 2023

Description

Fixes hard-coded horizontal and vertical rules that previously made borders bright white in dark mode. Panels had hasBorder property set to false 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:

Bright white borders while site is in dark mode.

After

Subtle borders with $ouiBorderColor in dark mode:

Subtle borders with $ouiBorderColor in dark mode.

Signed-off-by: Nicholas Ung <nicholasung22@gmail.com>
Signed-off-by: Nicholas Ung <nicholasung22@gmail.com>
Copy link
Member

@sejli sejli left a 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"
Copy link
Member

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?

Copy link
Contributor Author

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!

Comment on lines 12 to 18
border-right: 0;
}

.left-border {
border-left: 0;
}
Copy link
Member

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?

Copy link
Contributor Author

@nung22 nung22 Oct 6, 2023

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.

nung22 added 5 commits October 6, 2023 06:01
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
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #315 (4a35b0b) into main (7d062c5) will decrease coverage by 2.88%.
Report is 1 commits behind head on main.
The diff coverage is n/a.

@@            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              
Flag Coverage Δ
dashboards-search-relevance 87.08% <ø> (-2.88%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
public/components/common/header.tsx 100.00% <ø> (ø)
...search_components/search_configs/search_config.tsx 80.00% <ø> (ø)
...earch_components/search_configs/search_configs.tsx 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

@sejli sejli merged commit acb3dd8 into opensearch-project:main Oct 6, 2023
12 checks passed
github-actions bot added a commit that referenced this pull request Oct 6, 2023
… 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>
sejli pushed a commit that referenced this pull request Oct 6, 2023
… 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>
@nung22 nung22 deleted the fix/issue-306 branch October 7, 2023 01:17
github-actions bot added a commit that referenced this pull request Oct 11, 2023
… 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>
noCharger pushed a commit that referenced this pull request Oct 11, 2023
… 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

(OUI Next Theme) Border Color Not Compliant with Dark Mode
3 participants