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

QA fixes to align with the new borealis theme #204080

Merged
merged 12 commits into from
Dec 17, 2024

Conversation

mdefazio
Copy link
Contributor

@mdefazio mdefazio commented Dec 12, 2024

Summary

Fixes https://github.com/elastic/search-team/issues/8647

  • Updates non-status colors on badges and panels that were using success to accentSecondary. Some badges remain as success, changed non-status badges to primary
  • New guidance requests that buttons are changed to either text or primary rather than using accentSecondary
  • Changes serverless welcome banner background to match stack
  • Updates search labs banner to use right color <-- Background uses accentSecondary and keeps success button (Slack thread)
  • Adds border around code blocks so it is visible in dark mode.
Notebooks button: CleanShot 2024-12-13 at 09 27 37@2x CleanShot 2024-12-13 at 09 28 21@2x
Getting started Connection details: CleanShot 2024-12-16 at 09 53 56@2x
Welcome banner on Serverless: Removes primary background CleanShot 2024-12-13 at 09 37 56@2x
Search labs banner: CleanShot 2024-12-16 at 09 14 11@2x CleanShot 2024-12-16 at 09 13 04@2x
Borders in dark mode for code blocks CleanShot 2024-12-13 at 09 48 27@2x
Crawler updates CleanShot 2024-12-16 at 15 16 04@2x CleanShot 2024-12-16 at 15 16 51@2x CleanShot 2024-12-16 at 15 24 15@2x
Pipelines callouts, badges, and buttons CleanShot 2024-12-16 at 15 25 12@2x CleanShot 2024-12-16 at 15 25 46@2x

@JoseLuisGJ JoseLuisGJ self-requested a review December 12, 2024 17:58
@mdefazio mdefazio marked this pull request as ready for review December 12, 2024 18:10
@mdefazio mdefazio requested review from a team as code owners December 12, 2024 18:10
@@ -30,7 +30,7 @@ export const SearchNotebooksButton = ({
if (activeView) {
return (
<EuiButton
color="success"
color="accentSecondary"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mdefazio it looks like EUI won't be supporting accentSecondary as a button. Do you mind sharing the screenshot so we can help you decide what the right way to go is here? cc @ryankeairns

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pasted in following comment

@@ -47,7 +47,7 @@ export const SearchNotebooksButton = ({
}
return (
<EuiButtonEmpty
color="success"
color="accentSecondary"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above

Copy link
Contributor Author

@mdefazio mdefazio Dec 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

accentSecondary:
CleanShot 2024-12-13 at 09 13 05@2x

primary:
CleanShot 2024-12-13 at 09 13 59@2x

active state:
CleanShot 2024-12-13 at 09 17 20@2x

text:
CleanShot 2024-12-13 at 09 14 37@2x

active state:
CleanShot 2024-12-13 at 09 18 18@2x

cc/ @julianrosado @daveyholler for awareness

I guess I'd go for primary here?

Copy link
Contributor

@daveyholler daveyholler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Just need to address the comments from @andreadelrio and figure out what we need to replace accentSecondary with.

@@ -72,7 +73,7 @@ export const SearchLabsBanner: React.FC = () => {
<span>
<EuiButton
href="https://www.elastic.co/search-labs/tutorials"
color="success"
color="accentSecondary"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andreadelrio If the button sits inside a panel, shouldn't it follow that panels color? So does this mean we can no longer have an accentSecondary panel?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As agreed in Slack, will keep this as success panel with a success button.

@JasonStoltz JasonStoltz added EUI Visual Refresh backport:skip This commit does not require backporting labels Dec 13, 2024
@JasonStoltz
Copy link
Member

I added the "backport:skip" label, just FYI. Tokens like accentSecondary, etc. won't be available in 8.x

@@ -97,7 +97,7 @@ export const CloudDetailsPanel = ({
</EuiFlexItem>
<EuiFlexItem grow={false}>
<span>
<EuiBadge color="success">
<EuiBadge color="accentSecondary">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I've been told, latest design decision is that EuiBadge should not support accentSecondary, we're removing it in the next Borealis version (EUI PR).
The guidance is to keep success in place.

cc @ek-so

@mdefazio
Copy link
Contributor Author

I've updated this with new guidance and kept badges as success in most areas. Did change the 'Recommended' badge in cloud connection details to primary.

Copy link
Member

@sphilipse sphilipse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks Michael!

Copy link
Contributor

@andreadelrio andreadelrio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style changes LGTM, thanks!

@ryankeairns ryankeairns added the release_note:skip Skip the PR/issue when compiling release notes label Dec 16, 2024
@mdefazio mdefazio requested a review from a team as a code owner December 16, 2024 21:02
@mdefazio mdefazio enabled auto-merge (squash) December 17, 2024 15:09
@mdefazio
Copy link
Contributor Author

Closes: #204041

@mdefazio mdefazio force-pushed the eui-theme-search-fixes branch from fd2e159 to 36ae387 Compare December 17, 2024 19:26
@mdefazio mdefazio merged commit 42f94e2 into elastic:main Dec 17, 2024
8 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 2.6MB 2.6MB +54.0B
indexManagement 699.3KB 699.3KB +8.0B
serverlessSearch 369.9KB 369.8KB -151.0B
total -89.0B

History

JoseLuisGJ pushed a commit to JoseLuisGJ/kibana that referenced this pull request Dec 19, 2024
## Summary

Fixes elastic/search-team#8647

* ~Updates non-status colors on badges and panels that were using
`success` to `accentSecondary`~. Some badges remain as `success`,
changed non-status badges to `primary`
* New guidance requests that buttons are changed to either `text` or
`primary` rather than using `accentSecondary`
* Changes serverless welcome banner background to match stack
* Updates search labs banner to use right color <-- Background uses
`accentSecondary` and keeps `success` button [(Slack
thread](https://elastic.slack.com/archives/C7QC1JV6F/p1734103814782069))
* Adds border around code blocks so it is visible in dark mode.

| | |
|--------|--------|
| **Notebooks button:** | ![CleanShot 2024-12-13 at 09 27
37@2x](https://github.com/user-attachments/assets/1e1aeb27-12d3-4a20-829a-6e4720e8dedf)
![CleanShot 2024-12-13 at 09 28
21@2x](https://github.com/user-attachments/assets/2dfb97f0-10f4-4b7c-8b92-19c6e937b341)
|
| **Getting started Connection details:** | ![CleanShot 2024-12-16 at 09
53
56@2x](https://github.com/user-attachments/assets/1404901e-2079-4046-918e-754d8e49e750)
|
| **Welcome banner on Serverless: Removes primary background** |
![CleanShot 2024-12-13 at 09 37
56@2x](https://github.com/user-attachments/assets/99243bd6-75b0-4cd2-8f74-f1d00af3ad07)
|
| **Search labs banner:** | ![CleanShot 2024-12-16 at 09 14
11@2x](https://github.com/user-attachments/assets/d0c43e88-87a9-4929-994a-ac053ec0024a)
![CleanShot 2024-12-16 at 09 13
04@2x](https://github.com/user-attachments/assets/31d9b2b3-9ce9-4292-8f85-19a6dd31c9b2)
|
| **Borders in dark mode for code blocks** | ![CleanShot 2024-12-13 at
09 48
27@2x](https://github.com/user-attachments/assets/f3a002c4-bf3e-4d33-bce5-862477db073c)
|
| Crawler updates | ![CleanShot 2024-12-16 at 15 16
04@2x](https://github.com/user-attachments/assets/93c9e7e7-7009-4f2a-9b0b-0b127a5979bf)
![CleanShot 2024-12-16 at 15 16
51@2x](https://github.com/user-attachments/assets/f71f1f38-7e66-4cf5-8ec1-a67fe9dbf9f5)
![CleanShot 2024-12-16 at 15 24
15@2x](https://github.com/user-attachments/assets/62cc7a28-94cc-437c-b149-3ca79d334bb0)
|
| Pipelines callouts, badges, and buttons | ![CleanShot 2024-12-16 at 15
25
12@2x](https://github.com/user-attachments/assets/d02efa40-71d8-4140-9170-07e135b78d24)
![CleanShot 2024-12-16 at 15 25
46@2x](https://github.com/user-attachments/assets/f7ba21e3-acc8-4513-bca0-5cbb4c6ce06c)
|

---------

Co-authored-by: kibanamachine <[email protected]>
benakansara pushed a commit to benakansara/kibana that referenced this pull request Jan 2, 2025
## Summary

Fixes elastic/search-team#8647

* ~Updates non-status colors on badges and panels that were using
`success` to `accentSecondary`~. Some badges remain as `success`,
changed non-status badges to `primary`
* New guidance requests that buttons are changed to either `text` or
`primary` rather than using `accentSecondary`
* Changes serverless welcome banner background to match stack
* Updates search labs banner to use right color <-- Background uses
`accentSecondary` and keeps `success` button [(Slack
thread](https://elastic.slack.com/archives/C7QC1JV6F/p1734103814782069))
* Adds border around code blocks so it is visible in dark mode.

| | |
|--------|--------|
| **Notebooks button:** | ![CleanShot 2024-12-13 at 09 27
37@2x](https://github.com/user-attachments/assets/1e1aeb27-12d3-4a20-829a-6e4720e8dedf)
![CleanShot 2024-12-13 at 09 28
21@2x](https://github.com/user-attachments/assets/2dfb97f0-10f4-4b7c-8b92-19c6e937b341)
|
| **Getting started Connection details:** | ![CleanShot 2024-12-16 at 09
53
56@2x](https://github.com/user-attachments/assets/1404901e-2079-4046-918e-754d8e49e750)
|
| **Welcome banner on Serverless: Removes primary background** |
![CleanShot 2024-12-13 at 09 37
56@2x](https://github.com/user-attachments/assets/99243bd6-75b0-4cd2-8f74-f1d00af3ad07)
|
| **Search labs banner:** | ![CleanShot 2024-12-16 at 09 14
11@2x](https://github.com/user-attachments/assets/d0c43e88-87a9-4929-994a-ac053ec0024a)
![CleanShot 2024-12-16 at 09 13
04@2x](https://github.com/user-attachments/assets/31d9b2b3-9ce9-4292-8f85-19a6dd31c9b2)
|
| **Borders in dark mode for code blocks** | ![CleanShot 2024-12-13 at
09 48
27@2x](https://github.com/user-attachments/assets/f3a002c4-bf3e-4d33-bce5-862477db073c)
|
| Crawler updates | ![CleanShot 2024-12-16 at 15 16
04@2x](https://github.com/user-attachments/assets/93c9e7e7-7009-4f2a-9b0b-0b127a5979bf)
![CleanShot 2024-12-16 at 15 16
51@2x](https://github.com/user-attachments/assets/f71f1f38-7e66-4cf5-8ec1-a67fe9dbf9f5)
![CleanShot 2024-12-16 at 15 24
15@2x](https://github.com/user-attachments/assets/62cc7a28-94cc-437c-b149-3ca79d334bb0)
|
| Pipelines callouts, badges, and buttons | ![CleanShot 2024-12-16 at 15
25
12@2x](https://github.com/user-attachments/assets/d02efa40-71d8-4140-9170-07e135b78d24)
![CleanShot 2024-12-16 at 15 25
46@2x](https://github.com/user-attachments/assets/f7ba21e3-acc8-4513-bca0-5cbb4c6ce06c)
|

---------

Co-authored-by: kibanamachine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting EUI Visual Refresh release_note:skip Skip the PR/issue when compiling release notes v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.