[8.6] Fix z-index for exceptions (#147098) (#147105)

# Backport

This will backport the following commits from `main` to `8.6`:
- [Fix z-index for exceptions
(#147098)](https://github.com/elastic/kibana/pull/147098)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Khristinin
Nikita","email":"nikita.khristinin@elastic.co"},"sourceCommit":{"committedDate":"2022-12-06T14:09:58Z","message":"Fix
z-index for exceptions (#147098)\n\nClose:
https://github.com/elastic/kibana/issues/147066","sha":"da793b7a3cb0f7b22bef07fc936fb0679e8e6b30","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","v8.7.0"],"number":147098,"url":"https://github.com/elastic/kibana/pull/147098","mergeCommit":{"message":"Fix
z-index for exceptions (#147098)\n\nClose:
https://github.com/elastic/kibana/issues/147066","sha":"da793b7a3cb0f7b22bef07fc936fb0679e8e6b30"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/147098","number":147098,"mergeCommit":{"message":"Fix
z-index for exceptions (#147098)\n\nClose:
https://github.com/elastic/kibana/issues/147066","sha":"da793b7a3cb0f7b22bef07fc936fb0679e8e6b30"}}]}]
BACKPORT-->

Co-authored-by: Khristinin Nikita <nikita.khristinin@elastic.co>
This commit is contained in:
Kibana Machine 2022-12-06 10:42:02 -05:00 committed by GitHub
parent 48f43eb2a9
commit 06e6f19d32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -420,6 +420,7 @@ const ExceptionsViewerComponent = ({
onConfirm={handleConfirmExceptionFlyout}
data-test-subj="addExceptionItemFlyout"
showAlertCloseOptions
isNonTimeline={true}
/>
)}

View file

@ -209,6 +209,7 @@ export const ExceptionsListCard = memo<ExceptionsListCardProps>(
onConfirm={handleConfirmExceptionFlyout}
data-test-subj="addExceptionItemFlyoutInSharedLists"
showAlertCloseOptions={false}
isNonTimeline={true}
/>
) : null}
{showEditExceptionFlyout && exceptionToEdit ? (

View file

@ -69,6 +69,7 @@ const ListWithSearchComponent: FC<ListWithSearchComponentProps> = ({
onConfirm={handleConfirmExceptionFlyout}
data-test-subj="addExceptionItemFlyoutInList"
showAlertCloseOptions={false} // TODO ask if we need it
isNonTimeline={true}
// ask if we need the add to rule/list section and which list should we link the exception here
/>
) : viewerStatus === ViewerStatus.EMPTY || viewerStatus === ViewerStatus.LOADING ? (