Skip to content

[9.3] [Security Solution][Alert KPI] Fix white space bug in alert KPIs (#260803)#263149

Merged
kelvtanv merged 1 commit intoelastic:9.3from
kelvtanv:backport/9.3/pr-260803
Apr 14, 2026
Merged

[9.3] [Security Solution][Alert KPI] Fix white space bug in alert KPIs (#260803)#263149
kelvtanv merged 1 commit intoelastic:9.3from
kelvtanv:backport/9.3/pr-260803

Conversation

@kelvtanv
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

…stic#260803)

## Summary

[See issue](elastic#225838)

- Happens on both the new attacks page and alerts page for any kpi that
has an arbitrary list of items
- Caused by content overflowing parent container
- For example within the `Alerts by name` kpi, if there are many rows,
the content is hidden and scrollable but still (invisibly) takes up
space within the parent container
- Fix the tree map kpi to be bounded within the parent container (so
border does not overlap with content) and only make the graph portion
scrollable

### To test
1. Setup lots of rules (enough to overflow the kpi)
2. Generate a bunch of alerts from those rules
3. Alternatively, generate a bunch of alerts with unique hostnames to
overflow the `Top alerts by` kpi when sorting by `host.name`
4. Go to the summary section in alerts kpi and notice the large
scrollable white space
5. Go to the tree map and make sure the graph is large, notice the graph
overlaps the border of the bounding container and scrolling scrolls the
entire bounding container

Before:

https://github.com/user-attachments/assets/be6683c7-8590-495f-bc89-fce7182af135

After:

https://github.com/user-attachments/assets/7b4d53c7-cfd4-406f-8955-80217b5dd09e

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

(cherry picked from commit 58479ea)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/public/detections/components/attacks/kpis/attacks_summary_panel.tsx
@kelvtanv kelvtanv requested a review from kibanamachine as a code owner April 14, 2026 17:01
@kelvtanv kelvtanv added the backport This PR is a backport of another PR label Apr 14, 2026
@kelvtanv kelvtanv enabled auto-merge (squash) April 14, 2026 17:01
@kelvtanv kelvtanv requested a review from PhilippeOberti April 14, 2026 18:09
@kelvtanv kelvtanv merged commit 371b662 into elastic:9.3 Apr 14, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants