Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Security Solution][THI] remove usages of EUI json tokens (#210482
) (#210700) # Backport This will backport the following commits from `main` to `8.x`: - [[Security Solution][THI] remove usages of EUI json tokens (#210482)](#210482) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Philippe Oberti","email":"philippe.oberti@elastic.co"},"sourceCommit":{"committedDate":"2025-02-11T21:11:55Z","message":"[Security Solution][THI] remove usages of EUI json tokens (#210482)\n\n## Summary\r\n\r\nThis PR is probably the final PR that makes the changes to support EUI\r\nBorealis. It focuses on removing all the usage of EUI Json tokens.\r\n\r\nYou will notice different approaches while removing the tokens:\r\n- for some cases, the changes were done using `css from\r\n'@emotions/react'` as the components using the tokens were already using\r\n`euiTheme` or adding it was straightforward and required the minimal\r\namount of changes\r\n- for some cases, where the css changes were pretty involved, a hook was\r\ncreated to be able to import the styles and apply them in the components\r\n- finally for other cases, esepcially if the styled components were\r\nextracted in a different file and were used within many others, I\r\ndecided to create reusable components. This allowed to not change all\r\nthe files impacted and limit the number of files modified in this PR.\r\n\r\nFeel free to comment on any of the approaches and suggest better\r\noptions!\r\n\r\nhttps://github.com//issues/201889\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"161ce34cf7f38faed884421976b10494df0a4075","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Threat Hunting:Investigations","backport:version","v9.1.0","v8.19.0"],"title":"[Security Solution][THI] remove usages of EUI json tokens","number":210482,"url":"https://github.com/elastic/kibana/pull/210482","mergeCommit":{"message":"[Security Solution][THI] remove usages of EUI json tokens (#210482)\n\n## Summary\r\n\r\nThis PR is probably the final PR that makes the changes to support EUI\r\nBorealis. It focuses on removing all the usage of EUI Json tokens.\r\n\r\nYou will notice different approaches while removing the tokens:\r\n- for some cases, the changes were done using `css from\r\n'@emotions/react'` as the components using the tokens were already using\r\n`euiTheme` or adding it was straightforward and required the minimal\r\namount of changes\r\n- for some cases, where the css changes were pretty involved, a hook was\r\ncreated to be able to import the styles and apply them in the components\r\n- finally for other cases, esepcially if the styled components were\r\nextracted in a different file and were used within many others, I\r\ndecided to create reusable components. This allowed to not change all\r\nthe files impacted and limit the number of files modified in this PR.\r\n\r\nFeel free to comment on any of the approaches and suggest better\r\noptions!\r\n\r\nhttps://github.com//issues/201889\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"161ce34cf7f38faed884421976b10494df0a4075"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210482","number":210482,"mergeCommit":{"message":"[Security Solution][THI] remove usages of EUI json tokens (#210482)\n\n## Summary\r\n\r\nThis PR is probably the final PR that makes the changes to support EUI\r\nBorealis. It focuses on removing all the usage of EUI Json tokens.\r\n\r\nYou will notice different approaches while removing the tokens:\r\n- for some cases, the changes were done using `css from\r\n'@emotions/react'` as the components using the tokens were already using\r\n`euiTheme` or adding it was straightforward and required the minimal\r\namount of changes\r\n- for some cases, where the css changes were pretty involved, a hook was\r\ncreated to be able to import the styles and apply them in the components\r\n- finally for other cases, esepcially if the styled components were\r\nextracted in a different file and were used within many others, I\r\ndecided to create reusable components. This allowed to not change all\r\nthe files impacted and limit the number of files modified in this PR.\r\n\r\nFeel free to comment on any of the approaches and suggest better\r\noptions!\r\n\r\nhttps://github.com//issues/201889\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"161ce34cf7f38faed884421976b10494df0a4075"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Philippe Oberti <philippe.oberti@elastic.co>
- Loading branch information