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

[Security Solution] Rule Upgrade: Fix ES|QL autosuggest tooltip displaying in the wrong place #204780

Merged

Conversation

nikitaindik
Copy link
Contributor

@nikitaindik nikitaindik commented Dec 18, 2024

Resolves: #203305
Resolves: #202206

Summary

This PR fixes the ES|QL autosuggest tooltip displaying incorrectly in the Rule Upgrade flyout. The issue was caused by EuiFlyoutBody having transform: translateZ(0);, which created a new CSS stacking context and affected the positioning of fixed elements. This PR removes the transform to resolve the issue.

Background

The transform: translateZ(0); was originally added by EUI as a workaround for a Chrome bug that no longer reproduces.

Testing

The fix has been tested on:

  • Brave (Chromium v131, latest)
  • Chromium v118 (version on which the Chrome bug occurred)

No issues were observed with the flyout in either version.

Screenshots

Chromium v131 after fix
Scherm­afbeelding 2024-12-18 om 15 57 20

Chromium v118 after fix
Scherm­afbeelding 2024-12-18 om 15 57 36

Note: The darker backdrop in older Chromium is unrelated to this change.

Work started on 18-Dec-2024.

@nikitaindik nikitaindik added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Feature:Rule Management Security Solution Detection Rule Management area Team:Detection Rule Management Security Detection Rule Management Team Feature:Prebuilt Detection Rules Security Solution Prebuilt Detection Rules area backport:version Backport to applied version labels v8.18.0 labels Dec 18, 2024
@nikitaindik nikitaindik self-assigned this Dec 18, 2024
@nikitaindik nikitaindik requested a review from a team as a code owner December 18, 2024 15:45
@nikitaindik nikitaindik requested a review from dplumlee December 18, 2024 15:45
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management)

Copy link
Contributor

@dplumlee dplumlee left a comment

Choose a reason for hiding this comment

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

Pulled down and tested, everything lgtm! Thanks @nikitaindik

@nikitaindik nikitaindik enabled auto-merge (squash) December 18, 2024 17:33
@nikitaindik nikitaindik merged commit 9b09335 into elastic:main Dec 18, 2024
27 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12398456520

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #19 / StepDefinePackagePolicy default API response should display vars coming from package policy

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
securitySolution 21.4MB 21.4MB +15.0B

cc @nikitaindik

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 18, 2024
…aying in the wrong place (elastic#204780)

**Resolves: elastic#203305
**Resolves: elastic#202206

## Summary
This PR fixes the ES|QL autosuggest tooltip displaying incorrectly in
the Rule Upgrade flyout. The issue was caused by `EuiFlyoutBody` having
`transform: translateZ(0);`, which created a new CSS stacking context
and affected the positioning of fixed elements. This PR removes the
transform to resolve the issue.

## Background
The `transform: translateZ(0);` was originally
[added](https://github.com/elastic/eui/blob/ffd0cbca4d323ad0b1d5a73c252380d93178e5e7/packages/eui/src/global_styling/mixins/_helpers.ts#L122)
by EUI as a workaround for a Chrome bug that no longer reproduces.

## Testing
The fix has been tested on:
 - Brave (Chromium v131, latest)
- Chromium v118 (version on which the Chrome bug
[occurred](https://issues.chromium.org/issues/40778541#comment13))

No issues were observed with the flyout in either version.

## Screenshots
**Chromium v131 after fix**
<img width="1392" alt="Scherm­afbeelding 2024-12-18 om 15 57 20"
src="https://github.com/user-attachments/assets/d3087341-e5d2-45ca-83a3-70752fc026a4"
/>

**Chromium v118 after fix**
<img width="1392" alt="Scherm­afbeelding 2024-12-18 om 15 57 36"
src="https://github.com/user-attachments/assets/cbcfde0b-e571-4f35-a3cb-e4f35394c59b"
/>

Note: The darker backdrop in older Chromium is unrelated to this change.

Work started on 18-Dec-2024.

(cherry picked from commit 9b09335)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Dec 18, 2024
… displaying in the wrong place (#204780) (#204817)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] Rule Upgrade: Fix ES|QL autosuggest tooltip
displaying in the wrong place
(#204780)](#204780)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Nikita
Indik","email":"nikita.indik@elastic.co"},"sourceCommit":{"committedDate":"2024-12-18T17:46:28Z","message":"[Security
Solution] Rule Upgrade: Fix ES|QL autosuggest tooltip displaying in the
wrong place (#204780)\n\n**Resolves:
https://github.com/elastic/kibana/issues/203305**\n**Resolves:
https://github.com/elastic/kibana/issues/202206**\n\n## Summary\nThis PR
fixes the ES|QL autosuggest tooltip displaying incorrectly in\nthe Rule
Upgrade flyout. The issue was caused by `EuiFlyoutBody`
having\n`transform: translateZ(0);`, which created a new CSS stacking
context\nand affected the positioning of fixed elements. This PR removes
the\ntransform to resolve the issue.\n\n## Background\nThe `transform:
translateZ(0);` was
originally\n[added](https://github.com/elastic/eui/blob/ffd0cbca4d323ad0b1d5a73c252380d93178e5e7/packages/eui/src/global_styling/mixins/_helpers.ts#L122)\nby
EUI as a workaround for a Chrome bug that no longer reproduces.\n\n##
Testing\nThe fix has been tested on:\n - Brave (Chromium v131,
latest)\n- Chromium v118 (version on which the Chrome
bug\n[occurred](https://issues.chromium.org/issues/40778541#comment13))\n\nNo
issues were observed with the flyout in either version.\n\n##
Screenshots\n**Chromium v131 after fix**\n<img width=\"1392\"
alt=\"Scherm­afbeelding 2024-12-18 om 15 57
20\"\nsrc=\"https://github.com/user-attachments/assets/d3087341-e5d2-45ca-83a3-70752fc026a4\"\n/>\n\n**Chromium
v118 after fix**\n<img width=\"1392\" alt=\"Scherm­afbeelding 2024-12-18
om 15 57
36\"\nsrc=\"https://github.com/user-attachments/assets/cbcfde0b-e571-4f35-a3cb-e4f35394c59b\"\n/>\n\nNote:
The darker backdrop in older Chromium is unrelated to this
change.\n\nWork started on
18-Dec-2024.","sha":"9b0933567f1ec8a210fd5c6f4c6c4e0592042c57","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:Detections
and Resp","Team: SecuritySolution","Feature:Rule
Management","Team:Detection Rule Management","Feature:Prebuilt Detection
Rules","backport:version","v8.18.0"],"title":"[Security Solution] Rule
Upgrade: Fix ES|QL autosuggest tooltip displaying in the wrong
place","number":204780,"url":"https://github.com/elastic/kibana/pull/204780","mergeCommit":{"message":"[Security
Solution] Rule Upgrade: Fix ES|QL autosuggest tooltip displaying in the
wrong place (#204780)\n\n**Resolves:
https://github.com/elastic/kibana/issues/203305**\n**Resolves:
https://github.com/elastic/kibana/issues/202206**\n\n## Summary\nThis PR
fixes the ES|QL autosuggest tooltip displaying incorrectly in\nthe Rule
Upgrade flyout. The issue was caused by `EuiFlyoutBody`
having\n`transform: translateZ(0);`, which created a new CSS stacking
context\nand affected the positioning of fixed elements. This PR removes
the\ntransform to resolve the issue.\n\n## Background\nThe `transform:
translateZ(0);` was
originally\n[added](https://github.com/elastic/eui/blob/ffd0cbca4d323ad0b1d5a73c252380d93178e5e7/packages/eui/src/global_styling/mixins/_helpers.ts#L122)\nby
EUI as a workaround for a Chrome bug that no longer reproduces.\n\n##
Testing\nThe fix has been tested on:\n - Brave (Chromium v131,
latest)\n- Chromium v118 (version on which the Chrome
bug\n[occurred](https://issues.chromium.org/issues/40778541#comment13))\n\nNo
issues were observed with the flyout in either version.\n\n##
Screenshots\n**Chromium v131 after fix**\n<img width=\"1392\"
alt=\"Scherm­afbeelding 2024-12-18 om 15 57
20\"\nsrc=\"https://github.com/user-attachments/assets/d3087341-e5d2-45ca-83a3-70752fc026a4\"\n/>\n\n**Chromium
v118 after fix**\n<img width=\"1392\" alt=\"Scherm­afbeelding 2024-12-18
om 15 57
36\"\nsrc=\"https://github.com/user-attachments/assets/cbcfde0b-e571-4f35-a3cb-e4f35394c59b\"\n/>\n\nNote:
The darker backdrop in older Chromium is unrelated to this
change.\n\nWork started on
18-Dec-2024.","sha":"9b0933567f1ec8a210fd5c6f4c6c4e0592042c57"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204780","number":204780,"mergeCommit":{"message":"[Security
Solution] Rule Upgrade: Fix ES|QL autosuggest tooltip displaying in the
wrong place (#204780)\n\n**Resolves:
https://github.com/elastic/kibana/issues/203305**\n**Resolves:
https://github.com/elastic/kibana/issues/202206**\n\n## Summary\nThis PR
fixes the ES|QL autosuggest tooltip displaying incorrectly in\nthe Rule
Upgrade flyout. The issue was caused by `EuiFlyoutBody`
having\n`transform: translateZ(0);`, which created a new CSS stacking
context\nand affected the positioning of fixed elements. This PR removes
the\ntransform to resolve the issue.\n\n## Background\nThe `transform:
translateZ(0);` was
originally\n[added](https://github.com/elastic/eui/blob/ffd0cbca4d323ad0b1d5a73c252380d93178e5e7/packages/eui/src/global_styling/mixins/_helpers.ts#L122)\nby
EUI as a workaround for a Chrome bug that no longer reproduces.\n\n##
Testing\nThe fix has been tested on:\n - Brave (Chromium v131,
latest)\n- Chromium v118 (version on which the Chrome
bug\n[occurred](https://issues.chromium.org/issues/40778541#comment13))\n\nNo
issues were observed with the flyout in either version.\n\n##
Screenshots\n**Chromium v131 after fix**\n<img width=\"1392\"
alt=\"Scherm­afbeelding 2024-12-18 om 15 57
20\"\nsrc=\"https://github.com/user-attachments/assets/d3087341-e5d2-45ca-83a3-70752fc026a4\"\n/>\n\n**Chromium
v118 after fix**\n<img width=\"1392\" alt=\"Scherm­afbeelding 2024-12-18
om 15 57
36\"\nsrc=\"https://github.com/user-attachments/assets/cbcfde0b-e571-4f35-a3cb-e4f35394c59b\"\n/>\n\nNote:
The darker backdrop in older Chromium is unrelated to this
change.\n\nWork started on
18-Dec-2024.","sha":"9b0933567f1ec8a210fd5c6f4c6c4e0592042c57"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nikita Indik <nikita.indik@elastic.co>
JoseLuisGJ pushed a commit to JoseLuisGJ/kibana that referenced this pull request Dec 19, 2024
…aying in the wrong place (elastic#204780)

**Resolves: elastic#203305
**Resolves: elastic#202206

## Summary
This PR fixes the ES|QL autosuggest tooltip displaying incorrectly in
the Rule Upgrade flyout. The issue was caused by `EuiFlyoutBody` having
`transform: translateZ(0);`, which created a new CSS stacking context
and affected the positioning of fixed elements. This PR removes the
transform to resolve the issue.

## Background
The `transform: translateZ(0);` was originally
[added](https://github.com/elastic/eui/blob/ffd0cbca4d323ad0b1d5a73c252380d93178e5e7/packages/eui/src/global_styling/mixins/_helpers.ts#L122)
by EUI as a workaround for a Chrome bug that no longer reproduces.

## Testing
The fix has been tested on:
 - Brave (Chromium v131, latest)
- Chromium v118 (version on which the Chrome bug
[occurred](https://issues.chromium.org/issues/40778541#comment13))

No issues were observed with the flyout in either version.

## Screenshots
**Chromium v131 after fix**
<img width="1392" alt="Scherm­afbeelding 2024-12-18 om 15 57 20"
src="https://github.com/user-attachments/assets/d3087341-e5d2-45ca-83a3-70752fc026a4"
/>

**Chromium v118 after fix**
<img width="1392" alt="Scherm­afbeelding 2024-12-18 om 15 57 36"
src="https://github.com/user-attachments/assets/cbcfde0b-e571-4f35-a3cb-e4f35394c59b"
/>

Note: The darker backdrop in older Chromium is unrelated to this change.

Work started on 18-Dec-2024.
benakansara pushed a commit to benakansara/kibana that referenced this pull request Jan 2, 2025
…aying in the wrong place (elastic#204780)

**Resolves: elastic#203305
**Resolves: elastic#202206

## Summary
This PR fixes the ES|QL autosuggest tooltip displaying incorrectly in
the Rule Upgrade flyout. The issue was caused by `EuiFlyoutBody` having
`transform: translateZ(0);`, which created a new CSS stacking context
and affected the positioning of fixed elements. This PR removes the
transform to resolve the issue.

## Background
The `transform: translateZ(0);` was originally
[added](https://github.com/elastic/eui/blob/ffd0cbca4d323ad0b1d5a73c252380d93178e5e7/packages/eui/src/global_styling/mixins/_helpers.ts#L122)
by EUI as a workaround for a Chrome bug that no longer reproduces.

## Testing
The fix has been tested on:
 - Brave (Chromium v131, latest)
- Chromium v118 (version on which the Chrome bug
[occurred](https://issues.chromium.org/issues/40778541#comment13))

No issues were observed with the flyout in either version.

## Screenshots
**Chromium v131 after fix**
<img width="1392" alt="Scherm­afbeelding 2024-12-18 om 15 57 20"
src="https://github.com/user-attachments/assets/d3087341-e5d2-45ca-83a3-70752fc026a4"
/>

**Chromium v118 after fix**
<img width="1392" alt="Scherm­afbeelding 2024-12-18 om 15 57 36"
src="https://github.com/user-attachments/assets/cbcfde0b-e571-4f35-a3cb-e4f35394c59b"
/>

Note: The darker backdrop in older Chromium is unrelated to this change.

Work started on 18-Dec-2024.
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Jan 13, 2025
…aying in the wrong place (elastic#204780)

**Resolves: elastic#203305
**Resolves: elastic#202206

## Summary
This PR fixes the ES|QL autosuggest tooltip displaying incorrectly in
the Rule Upgrade flyout. The issue was caused by `EuiFlyoutBody` having
`transform: translateZ(0);`, which created a new CSS stacking context
and affected the positioning of fixed elements. This PR removes the
transform to resolve the issue.

## Background
The `transform: translateZ(0);` was originally
[added](https://github.com/elastic/eui/blob/ffd0cbca4d323ad0b1d5a73c252380d93178e5e7/packages/eui/src/global_styling/mixins/_helpers.ts#L122)
by EUI as a workaround for a Chrome bug that no longer reproduces.

## Testing
The fix has been tested on:
 - Brave (Chromium v131, latest)
- Chromium v118 (version on which the Chrome bug
[occurred](https://issues.chromium.org/issues/40778541#comment13))

No issues were observed with the flyout in either version.

## Screenshots
**Chromium v131 after fix**
<img width="1392" alt="Scherm­afbeelding 2024-12-18 om 15 57 20"
src="https://github.com/user-attachments/assets/d3087341-e5d2-45ca-83a3-70752fc026a4"
/>

**Chromium v118 after fix**
<img width="1392" alt="Scherm­afbeelding 2024-12-18 om 15 57 36"
src="https://github.com/user-attachments/assets/cbcfde0b-e571-4f35-a3cb-e4f35394c59b"
/>

Note: The darker backdrop in older Chromium is unrelated to this change.

Work started on 18-Dec-2024.
viduni94 pushed a commit to viduni94/kibana that referenced this pull request Jan 23, 2025
…aying in the wrong place (elastic#204780)

**Resolves: elastic#203305
**Resolves: elastic#202206

## Summary
This PR fixes the ES|QL autosuggest tooltip displaying incorrectly in
the Rule Upgrade flyout. The issue was caused by `EuiFlyoutBody` having
`transform: translateZ(0);`, which created a new CSS stacking context
and affected the positioning of fixed elements. This PR removes the
transform to resolve the issue.

## Background
The `transform: translateZ(0);` was originally
[added](https://github.com/elastic/eui/blob/ffd0cbca4d323ad0b1d5a73c252380d93178e5e7/packages/eui/src/global_styling/mixins/_helpers.ts#L122)
by EUI as a workaround for a Chrome bug that no longer reproduces.

## Testing
The fix has been tested on:
 - Brave (Chromium v131, latest)
- Chromium v118 (version on which the Chrome bug
[occurred](https://issues.chromium.org/issues/40778541#comment13))

No issues were observed with the flyout in either version.

## Screenshots
**Chromium v131 after fix**
<img width="1392" alt="Scherm­afbeelding 2024-12-18 om 15 57 20"
src="https://github.com/user-attachments/assets/d3087341-e5d2-45ca-83a3-70752fc026a4"
/>

**Chromium v118 after fix**
<img width="1392" alt="Scherm­afbeelding 2024-12-18 om 15 57 36"
src="https://github.com/user-attachments/assets/cbcfde0b-e571-4f35-a3cb-e4f35394c59b"
/>

Note: The darker backdrop in older Chromium is unrelated to this change.

Work started on 18-Dec-2024.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels Feature:Prebuilt Detection Rules Security Solution Prebuilt Detection Rules area Feature:Rule Management Security Solution Detection Rule Management area release_note:skip Skip the PR/issue when compiling release notes Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.18.0 v9.0.0
Projects
None yet
4 participants