← Back to Pull requests

[9.6] [AppHeader] Lower sticky header z-index while an EuiDataGrid is fullscreen (#307491) #308303

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Nov 30, 2026 14:09 UTC
Author

Backport

This will backport the following commits from main to 9.6:
- [[AppHeader] Lower sticky header z-index while an EuiDataGrid is fullscreen (#307491)](https://github.com/elastic/kibana/pull/307491)

<!--- Backport version: 12.1.2 -->

Questions ?


Please refer to the Backport tool documentation

<!--BACKPORT [{"author":{"name":"Mykhailo Kondrat","email":"mykhailo.kondrat@elastic.co"},"sourceCommit":{"committedDate":"2026-11-30T13:36:19Z","message":"[AppHeader] Lower sticky header z-index while an EuiDataGrid is fullscreen (#307491)\n\nCloses #283374\n\n## Summary\n\nIn a case, a fullscreen alerts table was partly hidden by the Cases page\nheader.\n\nThe sticky AppHeader uses the levels.mask z-index (6000). A\nfullscreen EuiDataGrid uses levels.header - 2 (998). The header\ntherefore covered the grid column headers.\n\nEUI adds the euiDataGrid__restrictBody class to the body in fullscreen\nmode. This change lowers the header z-index to levels.content when\nthat class is present.\n\n### Why lower the header and not raise the grid\n\nKibana already handles this problem by lowering the header or\nneutralizing other z-index values. No code raises\n.euiDataGrid--fullScreen above 998.\n\n| Place | Pattern |\n|---|---|\n| EUI EuiDataGrid (fullscreen_selector.styles.js) | Lowers\n.euiHeader[data-fixed-header] to 997 with the body class. AppHeader\nis not an EuiHeader, so this rule does not reach it. This PR extends\nthe same idea. |\n| Observability metrics grid (use_metrics_grid_fullscreen.ts) | Lowers\nthe header to 997 and resets .embPanel z-index. The reset fixes\n#260087, where panels stacked over the fullscreen overlay. |\n| Discover data table (use_full_screen_watcher.ts) | Sets z-index:\nunset on all elements except the grid, EUI portals, and\ndata-kbn-preserve-zindex elements. |\n| Security (use_full_screen) | Reuses the EUI body class. It has no\nz-index logic of its own. |\n\nRaising the grid is a shared change for every fullscreen grid. Other\nelements in the same stacking context can still out-rank a higher grid\nvalue, as #260087 shows. Flyouts, modals and popovers render in portals\non <body>, so the grid z-index does not affect them.\n\n## Testing\n\n\nhttps://github.com/user-attachments/assets/b4100848-3d9b-498f-a57b-cb0cee18bd07\n\n- Added unit tests in app_header.test.tsx for three cases: the mask\nz-index without fullscreen, the content z-index with the body class, and\nno z-index for a non-sticky header. The fullscreen test fails without\nthe fix.\n- ESLint, type check and the kbn-ui/app-header Jest tests pass.\n- In a local Kibana with a case that has 20 alerts, the Cases header\ncovered the column headers on main. With this change, the grid column\nheaders are fully visible, and the header returns to z-index 6000 after\nfullscreen exit.\n- I checked the sticky header on Dashboards, Cases, Security, Workflows,\nMaps and Data views. I found no regression.\n\n### Checklist\n\nCheck the PR satisfies following conditions.\n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] Any text added follows EUI's writing\nguidelines, uses\nsentence case text and includes i18n\nsupport\n(no user-facing text added)\n- [ ]\nDocumentation\nwas added for features that require explanation or tutorials\n- [x] Unit or functional\ntests\nwere updated or added to match the most common scenarios\n- [ ] If a plugin configuration key changed, check if it needs to be\nallowlisted in the cloud, added to the docker\nlist,\nor updated in external injectors such as kibana-controller; unused in\nthis repo is not unused in production — prefer\nrename()\nover a hard cut\n- [ ] This was checked for breaking HTTP API changes, and any breaking\nchanges have been approved by the breaking-change committee. The\nrelease_note:breaking label should be applied in these situations, and\nthe PR description must then include ## Impact and ## Action\nsections. See breaking\nchanges.\n- [ ] Flaky Test\nRunner was\nused on any tests changed\n- [ ] The correct release_note: type label (or release_note:skip)\nis applied, the PR title reads as a release note, and the description\nhas a ## Release note section if a custom summary is needed, per the\nguidelines.\n- [ ] Review the backport\nguidelines\nand apply applicable backport: labels.\n\n### Identify risks\n\nDoes this PR introduce any risks? For example, consider risks like hard\nto test bugs, performance regression, potential of data loss.\n\nDescribe the risk, its severity, and mitigation for each identified\nrisk. Invite stakeholders and evaluate how to proceed before merging.\n\n- [ ] See some risk\nexamples\n- [x] The fix depends on the EUI body class euiDataGrid__restrictBody.\nIf EUI renames it, the header covers a fullscreen grid again, with no\nerror. Severity: low. Kibana chrome (handle_eui_fullscreen_changes)\nand Security already depend on the same class. Mitigation: the unit test\ncovers our rule, and we can ask EUI for a stable signal.\n- [x] The header drops to z-index 0, the same level as page content,\nwhile a grid is fullscreen. A later sibling in the DOM could paint over\nit. Severity: low. This is only while a fullscreen grid is open.\n\n---------\n\nCo-authored-by: Cursor <cursoragent@cursor.com>","sha":"8301d0c292d7f004c9d8efd0acf4e1744d3a4a40","branchLabelMapping":{"^v9.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:version","v9.6.0","reviewer:libra","Team:Security Investigations","libra:enable-draft","v9.7.0"],"title":"[AppHeader] Lower sticky header z-index while an EuiDataGrid is fullscreen","number":307491,"url":"https://github.com/elastic/kibana/pull/307491","mergeCommit":{"message":"[AppHeader] Lower sticky header z-index while an EuiDataGrid is fullscreen (#307491)\n\nCloses #283374\n\n## Summary\n\nIn a case, a fullscreen alerts table was partly hidden by the Cases page\nheader.\n\nThe sticky AppHeader uses the levels.mask z-index (6000). A\nfullscreen EuiDataGrid uses levels.header - 2 (998). The header\ntherefore covered the grid column headers.\n\nEUI adds the euiDataGrid__restrictBody class to the body in fullscreen\nmode. This change lowers the header z-index to levels.content when\nthat class is present.\n\n### Why lower the header and not raise the grid\n\nKibana already handles this problem by lowering the header or\nneutralizing other z-index values. No code raises\n.euiDataGrid--fullScreen above 998.\n\n| Place | Pattern |\n|---|---|\n| EUI EuiDataGrid (fullscreen_selector.styles.js) | Lowers\n.euiHeader[data-fixed-header] to 997 with the body class. AppHeader\nis not an EuiHeader, so this rule does not reach it. This PR extends\nthe same idea. |\n| Observability metrics grid (use_metrics_grid_fullscreen.ts) | Lowers\nthe header to 997 and resets .embPanel z-index. The reset fixes\n#260087, where panels stacked over the fullscreen overlay. |\n| Discover data table (use_full_screen_watcher.ts) | Sets z-index:\nunset on all elements except the grid, EUI portals, and\ndata-kbn-preserve-zindex elements. |\n| Security (use_full_screen) | Reuses the EUI body class. It has no\nz-index logic of its own. |\n\nRaising the grid is a shared change for every fullscreen grid. Other\nelements in the same stacking context can still out-rank a higher grid\nvalue, as #260087 shows. Flyouts, modals and popovers render in portals\non <body>, so the grid z-index does not affect them.\n\n## Testing\n\n\nhttps://github.com/user-attachments/assets/b4100848-3d9b-498f-a57b-cb0cee18bd07\n\n- Added unit tests in app_header.test.tsx for three cases: the mask\nz-index without fullscreen, the content z-index with the body class, and\nno z-index for a non-sticky header. The fullscreen test fails without\nthe fix.\n- ESLint, type check and the kbn-ui/app-header Jest tests pass.\n- In a local Kibana with a case that has 20 alerts, the Cases header\ncovered the column headers on main. With this change, the grid column\nheaders are fully visible, and the header returns to z-index 6000 after\nfullscreen exit.\n- I checked the sticky header on Dashboards, Cases, Security, Workflows,\nMaps and Data views. I found no regression.\n\n### Checklist\n\nCheck the PR satisfies following conditions.\n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] Any text added follows EUI's writing\nguidelines, uses\nsentence case text and includes i18n\nsupport\n(no user-facing text added)\n- [ ]\nDocumentation\nwas added for features that require explanation or tutorials\n- [x] Unit or functional\ntests\nwere updated or added to match the most common scenarios\n- [ ] If a plugin configuration key changed, check if it needs to be\nallowlisted in the cloud, added to the docker\nlist,\nor updated in external injectors such as kibana-controller; unused in\nthis repo is not unused in production — prefer\nrename()\nover a hard cut\n- [ ] This was checked for breaking HTTP API changes, and any breaking\nchanges have been approved by the breaking-change committee. The\nrelease_note:breaking label should be applied in these situations, and\nthe PR description must then include ## Impact and ## Action\nsections. See breaking\nchanges.\n- [ ] Flaky Test\nRunner was\nused on any tests changed\n- [ ] The correct release_note: type label (or release_note:skip)\nis applied, the PR title reads as a release note, and the description\nhas a ## Release note section if a custom summary is needed, per the\nguidelines.\n- [ ] Review the backport\nguidelines\nand apply applicable backport: labels.\n\n### Identify risks\n\nDoes this PR introduce any risks? For example, consider risks like hard\nto test bugs, performance regression, potential of data loss.\n\nDescribe the risk, its severity, and mitigation for each identified\nrisk. Invite stakeholders and evaluate how to proceed before merging.\n\n- [ ] See some risk\nexamples\n- [x] The fix depends on the EUI body class euiDataGrid__restrictBody.\nIf EUI renames it, the header covers a fullscreen grid again, with no\nerror. Severity: low. Kibana chrome (handle_eui_fullscreen_changes)\nand Security already depend on the same class. Mitigation: the unit test\ncovers our rule, and we can ask EUI for a stable signal.\n- [x] The header drops to z-index 0, the same level as page content,\nwhile a grid is fullscreen. A later sibling in the DOM could paint over\nit. Severity: low. This is only while a fullscreen grid is open.\n\n---------\n\nCo-authored-by: Cursor <cursoragent@cursor.com>","sha":"8301d0c292d7f004c9d8efd0acf4e1744d3a4a40"}},"sourceBranch":"main","suggestedTargetBranches":["9.6"],"targetPullRequestStates":[{"branch":"9.6","label":"v9.6.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.7.0","branchLabelMappingKey":"^v9.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/307491","number":307491,"mergeCommit":{"message":"[AppHeader] Lower sticky header z-index while an EuiDataGrid is fullscreen (#307491)\n\nCloses #283374\n\n## Summary\n\nIn a case, a fullscreen alerts table was partly hidden by the Cases page\nheader.\n\nThe sticky AppHeader uses the levels.mask z-index (6000). A\nfullscreen EuiDataGrid uses levels.header - 2 (998). The header\ntherefore covered the grid column headers.\n\nEUI adds the euiDataGrid__restrictBody class to the body in fullscreen\nmode. This change lowers the header z-index to levels.content when\nthat class is present.\n\n### Why lower the header and not raise the grid\n\nKibana already handles this problem by lowering the header or\nneutralizing other z-index values. No code raises\n.euiDataGrid--fullScreen above 998.\n\n| Place | Pattern |\n|---|---|\n| EUI EuiDataGrid (fullscreen_selector.styles.js) | Lowers\n.euiHeader[data-fixed-header] to 997 with the body class. AppHeader\nis not an EuiHeader, so this rule does not reach it. This PR extends\nthe same idea. |\n| Observability metrics grid (use_metrics_grid_fullscreen.ts) | Lowers\nthe header to 997 and resets .embPanel z-index. The reset fixes\n#260087, where panels stacked over the fullscreen overlay. |\n| Discover data table (use_full_screen_watcher.ts) | Sets z-index:\nunset on all elements except the grid, EUI portals, and\ndata-kbn-preserve-zindex elements. |\n| Security (use_full_screen) | Reuses the EUI body class. It has no\nz-index logic of its own. |\n\nRaising the grid is a shared change for every fullscreen grid. Other\nelements in the same stacking context can still out-rank a higher grid\nvalue, as #260087 shows. Flyouts, modals and popovers render in portals\non <body>, so the grid z-index does not affect them.\n\n## Testing\n\n\nhttps://github.com/user-attachments/assets/b4100848-3d9b-498f-a57b-cb0cee18bd07\n\n- Added unit tests in app_header.test.tsx for three cases: the mask\nz-index without fullscreen, the content z-index with the body class, and\nno z-index for a non-sticky header. The fullscreen test fails without\nthe fix.\n- ESLint, type check and the kbn-ui/app-header Jest tests pass.\n- In a local Kibana with a case that has 20 alerts, the Cases header\ncovered the column headers on main. With this change, the grid column\nheaders are fully visible, and the header returns to z-index 6000 after\nfullscreen exit.\n- I checked the sticky header on Dashboards, Cases, Security, Workflows,\nMaps and Data views. I found no regression.\n\n### Checklist\n\nCheck the PR satisfies following conditions.\n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] Any text added follows EUI's writing\nguidelines, uses\nsentence case text and includes i18n\nsupport\n(no user-facing text added)\n- [ ]\nDocumentation\nwas added for features that require explanation or tutorials\n- [x] Unit or functional\ntests\nwere updated or added to match the most common scenarios\n- [ ] If a plugin configuration key changed, check if it needs to be\nallowlisted in the cloud, added to the docker\nlist,\nor updated in external injectors such as kibana-controller; unused in\nthis repo is not unused in production — prefer\nrename()\nover a hard cut\n- [ ] This was checked for breaking HTTP API changes, and any breaking\nchanges have been approved by the breaking-change committee. The\nrelease_note:breaking label should be applied in these situations, and\nthe PR description must then include ## Impact and ## Action\nsections. See breaking\nchanges.\n- [ ] Flaky Test\nRunner was\nused on any tests changed\n- [ ] The correct release_note: type label (or release_note:skip)\nis applied, the PR title reads as a release note, and the description\nhas a ## Release note section if a custom summary is needed, per the\nguidelines.\n- [ ] Review the backport\nguidelines\nand apply applicable backport: labels.\n\n### Identify risks\n\nDoes this PR introduce any risks? For example, consider risks like hard\nto test bugs, performance regression, potential of data loss.\n\nDescribe the risk, its severity, and mitigation for each identified\nrisk. Invite stakeholders and evaluate how to proceed before merging.\n\n- [ ] See some risk\nexamples\n- [x] The fix depends on the EUI body class euiDataGrid__restrictBody.\nIf EUI renames it, the header covers a fullscreen grid again, with no\nerror. Severity: low. Kibana chrome (handle_eui_fullscreen_changes)\nand Security already depend on the same class. Mitigation: the unit test\ncovers our rule, and we can ask EUI for a stable signal.\n- [x] The header drops to z-index 0, the same level as page content,\nwhile a grid is fullscreen. A later sibling in the DOM could paint over\nit. Severity: low. This is only while a fullscreen grid is open.\n\n---------\n\nCo-authored-by: Cursor <cursoragent@cursor.com>","sha":"8301d0c292d7f004c9d8efd0acf4e1744d3a4a40"}}]}] BACKPORT-->

Diff: 650 lines (+487 / -163) across 8 files Reviewer: github-actions[bot] Review duration: 2m
All Vouch review confidence checks passed
Residual risk 0.44 = Change Risk (0.52) × (1 − Review Confidence (0.16)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
0.52
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 13% · Reviewer familiarity: 35%
16%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.388
Shallow Review Depth shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #308303"
general weight: 0.35
Assignees
Unassigned
Labels
risk: medium confidence: 16.3% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 52% (MEDIUM) · Higher = larger blast radius
52%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 16.3% · Lower = rushed or shallow review
16.3%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 43.5% · Moderate risk
43.5%
Repository