-
Notifications
You must be signed in to change notification settings - Fork 8.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
[Stateful sidenav] Fix highlight colours #201823
[Stateful sidenav] Fix highlight colours #201823
Conversation
/ci |
Pinging @elastic/appex-sharedux (Team:SharedUX) |
@@ -43,7 +43,9 @@ jest.mock('@testing-library/react', () => { | |||
const originalConsoleError = console.error; | |||
console.error = (...args) => { | |||
if (global.IS_REACT_ACT_ENVIRONMENT === false) { | |||
if (args[0].includes('Warning: An update to %s inside a test was not wrapped in act')) { | |||
if ( | |||
args[0].toString().includes('Warning: An update to %s inside a test was not wrapped in act') |
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 had to convert to String as the error that was passed was an "object" type that does not have the includes
prop
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.
packages/kbn-test/src/jest/setup/react_testing_library.js
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 smoked-checked the nav. Seem to be working well 👍
a { | ||
text-decoration: auto; | ||
} | ||
export const SolutionSideNavPanelItemStyles = (euiTheme: EuiThemeComputed<{}>) => css` |
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.
Had to move those style outside as for the platform side nav the links are rendered in a different panel
x-pack/packages/security-solution/side_nav/src/solution_side_nav_panel.tsx
Outdated
Show resolved
Hide resolved
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
cc @sebelga |
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.
packages/kbn-test/src/jest/setup/react_testing_library.js
and x-pack/test_serverless/functional/services/ml/observability_navigation.ts
changes LGTM
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.
Obs changes LGTM
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.
obs ux management code change LGTM
Starting backport for target branches: 8.x |
(cherry picked from commit d0794de)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[Stateful sidenav] Fix highlight colours (#201823)](#201823) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sébastien Loix","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-28T21:38:19Z","message":"[Stateful sidenav] Fix highlight colours (#201823)","sha":"d0794de945777d829f32582cf1459679faabf3b3","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","Feature:Chrome","ci:project-deploy-observability"],"title":"[Stateful sidenav] Fix highlight colours","number":201823,"url":"https://github.com/elastic/kibana/pull/201823","mergeCommit":{"message":"[Stateful sidenav] Fix highlight colours (#201823)","sha":"d0794de945777d829f32582cf1459679faabf3b3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201823","number":201823,"mergeCommit":{"message":"[Stateful sidenav] Fix highlight colours (#201823)","sha":"d0794de945777d829f32582cf1459679faabf3b3"}}]}] BACKPORT--> Co-authored-by: Sébastien Loix <[email protected]>
In this PR I've fixed some highlights problem in the new solution sidenav (see linked issue).
Screenshots
Fixes #197749
Fixes #200219