Skip to content

[SharedUX] Fix toast counter badge stack order#229300

Merged
angeles-mb merged 2 commits intoelastic:mainfrom
angeles-mb:226225-fix-hidden-toast-count-badge
Jul 29, 2025
Merged

[SharedUX] Fix toast counter badge stack order#229300
angeles-mb merged 2 commits intoelastic:mainfrom
angeles-mb:226225-fix-hidden-toast-count-badge

Conversation

@angeles-mb
Copy link
Contributor

@angeles-mb angeles-mb commented Jul 24, 2025

Closes #226225

Summary

Visuals

Before/After Success

Screenshot 2025-07-24 at 11 27 06 Screenshot 2025-07-24 at 11 27 54

Before/After Info Flavour

Screenshot 2025-07-24 at 11 36 50 Screenshot 2025-07-24 at 11 37 20

Before/After Success Mobile

Screenshot 2025-07-24 at 11 29 39 Screenshot 2025-07-24 at 11 28 35
@angeles-mb angeles-mb self-assigned this Jul 24, 2025
@angeles-mb
Copy link
Contributor Author

/ci

@angeles-mb angeles-mb marked this pull request as ready for review July 24, 2025 13:28
@angeles-mb angeles-mb requested a review from a team as a code owner July 24, 2025 13:28
@angeles-mb angeles-mb force-pushed the 226225-fix-hidden-toast-count-badge branch from a8cbfe3 to d057e35 Compare July 24, 2025 13:29
@angeles-mb angeles-mb added release_note:fix Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// backport:all-open Backport to all branches that could still receive a release labels Jul 24, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@eokoneyo
Copy link
Contributor

@elasticmachine merge upstream

@angeles-mb angeles-mb force-pushed the 226225-fix-hidden-toast-count-badge branch from 5a80d9c to 6968b52 Compare July 28, 2025 08:50
@angeles-mb angeles-mb requested a review from a team as a code owner July 28, 2025 08:50
@angeles-mb angeles-mb force-pushed the 226225-fix-hidden-toast-count-badge branch from 6968b52 to ef44cc8 Compare July 28, 2025 10:54
Copy link
Member

@kowalczyk-krzysztof kowalczyk-krzysztof left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
core 478.5KB 478.5KB +10.0B

History

cc @angeles-mb

Copy link
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

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

Nice work @angeles-mb !

@angeles-mb angeles-mb merged commit 9699426 into elastic:main Jul 29, 2025
12 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.17, 8.18, 8.19, 9.0, 9.1

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 29, 2025
Closes elastic#226225

## Summary
- Fixed the toast counter badge which was positioned behind the toast
(toast stack context sets [z-index:
9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))
- Original toast counter PR:
elastic#161738
- As discussed on that PR, a more robust approach would include this
counter in the EUI component itself but it seems that it was discarded
here: elastic/eui#6945 after Kibana's usecase
being covered by this simpler approach

## Visuals
### Before/After Success

<img width="345" height="77" alt="Screenshot 2025-07-24 at 11 27 06"
src="https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780"
/>

<img width="349" height="78" alt="Screenshot 2025-07-24 at 11 27 54"
src="https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8"
/>

### Before/After Info Flavour

<img width="346" height="78" alt="Screenshot 2025-07-24 at 11 36 50"
src="https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b"
/>

<img width="346" height="77" alt="Screenshot 2025-07-24 at 11 37 20"
src="https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09"
/>

### Before/After Success Mobile
<img width="398" height="135" alt="Screenshot 2025-07-24 at 11 29 39"
src="https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f"
/>

<img width="395" height="132" alt="Screenshot 2025-07-24 at 11 28 35"
src="https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3"
/>

(cherry picked from commit 9699426)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 29, 2025
Closes elastic#226225

## Summary
- Fixed the toast counter badge which was positioned behind the toast
(toast stack context sets [z-index:
9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))
- Original toast counter PR:
elastic#161738
- As discussed on that PR, a more robust approach would include this
counter in the EUI component itself but it seems that it was discarded
here: elastic/eui#6945 after Kibana's usecase
being covered by this simpler approach

## Visuals
### Before/After Success

<img width="345" height="77" alt="Screenshot 2025-07-24 at 11 27 06"
src="https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780"
/>

<img width="349" height="78" alt="Screenshot 2025-07-24 at 11 27 54"
src="https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8"
/>

### Before/After Info Flavour

<img width="346" height="78" alt="Screenshot 2025-07-24 at 11 36 50"
src="https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b"
/>

<img width="346" height="77" alt="Screenshot 2025-07-24 at 11 37 20"
src="https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09"
/>

### Before/After Success Mobile
<img width="398" height="135" alt="Screenshot 2025-07-24 at 11 29 39"
src="https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f"
/>

<img width="395" height="132" alt="Screenshot 2025-07-24 at 11 28 35"
src="https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3"
/>

(cherry picked from commit 9699426)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.17 Backport failed because of merge conflicts
8.18 Backport failed because of merge conflicts
8.19
9.0 Backport failed because of merge conflicts
9.1

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 229300

Questions ?

Please refer to the Backport tool documentation

angeles-mb added a commit to angeles-mb/kibana that referenced this pull request Jul 29, 2025
Closes elastic#226225

## Summary
- Fixed the toast counter badge which was positioned behind the toast
(toast stack context sets [z-index:
9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))
- Original toast counter PR:
elastic#161738
- As discussed on that PR, a more robust approach would include this
counter in the EUI component itself but it seems that it was discarded
here: elastic/eui#6945 after Kibana's usecase
being covered by this simpler approach

## Visuals
### Before/After Success

<img width="345" height="77" alt="Screenshot 2025-07-24 at 11 27 06"
src="https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780"
/>

<img width="349" height="78" alt="Screenshot 2025-07-24 at 11 27 54"
src="https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8"
/>

### Before/After Info Flavour

<img width="346" height="78" alt="Screenshot 2025-07-24 at 11 36 50"
src="https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b"
/>

<img width="346" height="77" alt="Screenshot 2025-07-24 at 11 37 20"
src="https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09"
/>

### Before/After Success Mobile
<img width="398" height="135" alt="Screenshot 2025-07-24 at 11 29 39"
src="https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f"
/>

<img width="395" height="132" alt="Screenshot 2025-07-24 at 11 28 35"
src="https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3"
/>

(cherry picked from commit 9699426)

# Conflicts:
#	src/core/packages/notifications/browser-internal/src/toasts/__snapshots__/deduplicate_toasts.test.tsx.snap
#	x-pack/platform/plugins/private/canvas/public/components/export_app/__snapshots__/export_app.test.tsx.snap
@angeles-mb
Copy link
Contributor Author

💔 Some backports could not be created

Status Branch Result
9.0
8.18
8.17 Conflict resolution was aborted by the user

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 229300

Questions ?

Please refer to the Backport tool documentation

@angeles-mb
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.17

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

Questions ?

Please refer to the Backport tool documentation

angeles-mb added a commit to angeles-mb/kibana that referenced this pull request Jul 29, 2025
Closes elastic#226225

## Summary
- Fixed the toast counter badge which was positioned behind the toast
(toast stack context sets [z-index:
9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))
- Original toast counter PR:
elastic#161738
- As discussed on that PR, a more robust approach would include this
counter in the EUI component itself but it seems that it was discarded
here: elastic/eui#6945 after Kibana's usecase
being covered by this simpler approach

## Visuals
### Before/After Success

<img width="345" height="77" alt="Screenshot 2025-07-24 at 11 27 06"
src="https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780"
/>

<img width="349" height="78" alt="Screenshot 2025-07-24 at 11 27 54"
src="https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8"
/>

### Before/After Info Flavour

<img width="346" height="78" alt="Screenshot 2025-07-24 at 11 36 50"
src="https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b"
/>

<img width="346" height="77" alt="Screenshot 2025-07-24 at 11 37 20"
src="https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09"
/>

### Before/After Success Mobile
<img width="398" height="135" alt="Screenshot 2025-07-24 at 11 29 39"
src="https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f"
/>

<img width="395" height="132" alt="Screenshot 2025-07-24 at 11 28 35"
src="https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3"
/>

(cherry picked from commit 9699426)

# Conflicts:
#	packages/core/notifications/core-notifications-browser-internal/src/toasts/__snapshots__/deduplicate_toasts.test.tsx.snap
#	x-pack/platform/plugins/private/canvas/public/components/export_app/__snapshots__/export_app.test.tsx.snap
kibanamachine added a commit that referenced this pull request Jul 29, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [[SharedUX] Fix toast counter badge stack order
(#229300)](#229300)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Ángeles Martínez
Barrio","email":"angeles.martinezbarrio@elastic.co"},"sourceCommit":{"committedDate":"2025-07-29T09:04:24Z","message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:SharedUX","backport:all-open","v9.2.0"],"title":"[SharedUX]
Fix toast counter badge stack
order","number":229300,"url":"https://github.com/elastic/kibana/pull/229300","mergeCommit":{"message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/229300","number":229300,"mergeCommit":{"message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1"}}]}]
BACKPORT-->

Co-authored-by: Ángeles Martínez Barrio <angeles.martinezbarrio@elastic.co>
kibanamachine added a commit that referenced this pull request Jul 29, 2025
)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[SharedUX] Fix toast counter badge stack order
(#229300)](#229300)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Ángeles Martínez
Barrio","email":"angeles.martinezbarrio@elastic.co"},"sourceCommit":{"committedDate":"2025-07-29T09:04:24Z","message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:SharedUX","backport:all-open","v9.2.0"],"title":"[SharedUX]
Fix toast counter badge stack
order","number":229300,"url":"https://github.com/elastic/kibana/pull/229300","mergeCommit":{"message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/229300","number":229300,"mergeCommit":{"message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1"}}]}]
BACKPORT-->

Co-authored-by: Ángeles Martínez Barrio <angeles.martinezbarrio@elastic.co>
angeles-mb added a commit that referenced this pull request Jul 29, 2025
)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[SharedUX] Fix toast counter badge stack order
(#229300)](#229300)

<!--- Backport version: 10.0.1 -->

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

<!--BACKPORT [{"author":{"name":"Ángeles Martínez
Barrio","email":"angeles.martinezbarrio@elastic.co"},"sourceCommit":{"committedDate":"2025-07-29T09:04:24Z","message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:SharedUX","backport:all-open","v9.2.0"],"title":"[SharedUX]
Fix toast counter badge stack
order","number":229300,"url":"https://github.com/elastic/kibana/pull/229300","mergeCommit":{"message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/229300","number":229300,"mergeCommit":{"message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1"}},{"url":"https://github.com/elastic/kibana/pull/229761","number":229761,"branch":"8.19","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/229762","number":229762,"branch":"9.1","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/229772","number":229772,"branch":"9.0","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/229773","number":229773,"branch":"8.18","state":"OPEN"}]}]
BACKPORT-->
angeles-mb added a commit that referenced this pull request Jul 29, 2025
)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[SharedUX] Fix toast counter badge stack order
(#229300)](#229300)

<!--- Backport version: 10.0.1 -->

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

<!--BACKPORT [{"author":{"name":"Ángeles Martínez
Barrio","email":"angeles.martinezbarrio@elastic.co"},"sourceCommit":{"committedDate":"2025-07-29T09:04:24Z","message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:SharedUX","backport:all-open","v9.2.0"],"title":"[SharedUX]
Fix toast counter badge stack
order","number":229300,"url":"https://github.com/elastic/kibana/pull/229300","mergeCommit":{"message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/229300","number":229300,"mergeCommit":{"message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1"}},{"url":"https://github.com/elastic/kibana/pull/229761","number":229761,"branch":"8.19","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/229762","number":229762,"branch":"9.1","state":"OPEN"}]}]
BACKPORT-->
angeles-mb added a commit that referenced this pull request Jul 29, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [[SharedUX] Fix toast counter badge stack order
(#229300)](#229300)

<!--- Backport version: 10.0.1 -->

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

<!--BACKPORT [{"author":{"name":"Ángeles Martínez
Barrio","email":"angeles.martinezbarrio@elastic.co"},"sourceCommit":{"committedDate":"2025-07-29T09:04:24Z","message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:SharedUX","backport:all-open","v9.2.0"],"title":"[SharedUX]
Fix toast counter badge stack
order","number":229300,"url":"https://github.com/elastic/kibana/pull/229300","mergeCommit":{"message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/229300","number":229300,"mergeCommit":{"message":"[SharedUX]
Fix toast counter badge stack order (#229300)\n\nCloses
https://github.com/elastic/kibana/issues/226225\n\n## Summary\n- Fixed
the toast counter badge which was positioned behind the toast\n(toast
stack context sets
[z-index:\n9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))\n-
Original toast counter
PR:\nhttps://github.com//pull/161738\n- As discussed on
that PR, a more robust approach would include this\ncounter in the EUI
component itself but it seems that it was discarded\nhere:
elastic/eui#6945 after Kibana's usecase\nbeing
covered by this simpler approach\n\n## Visuals\n### Before/After
Success\n\n<img width=\"345\" height=\"77\" alt=\"Screenshot 2025-07-24
at 11 27
06\"\nsrc=\"https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780\"\n/>\n\n<img
width=\"349\" height=\"78\" alt=\"Screenshot 2025-07-24 at 11 27
54\"\nsrc=\"https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8\"\n/>\n\n###
Before/After Info Flavour\n\n<img width=\"346\" height=\"78\"
alt=\"Screenshot 2025-07-24 at 11 36
50\"\nsrc=\"https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b\"\n/>\n\n<img
width=\"346\" height=\"77\" alt=\"Screenshot 2025-07-24 at 11 37
20\"\nsrc=\"https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09\"\n/>\n\n###
Before/After Success Mobile\n<img width=\"398\" height=\"135\"
alt=\"Screenshot 2025-07-24 at 11 29
39\"\nsrc=\"https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f\"\n/>\n\n<img
width=\"395\" height=\"132\" alt=\"Screenshot 2025-07-24 at 11 28
35\"\nsrc=\"https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3\"\n/>","sha":"96994268de3da116737918e83b21d082d2165ab1"}},{"url":"https://github.com/elastic/kibana/pull/229761","number":229761,"branch":"8.19","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/229762","number":229762,"branch":"9.1","state":"OPEN"}]}]
BACKPORT-->
delanni pushed a commit to delanni/kibana that referenced this pull request Aug 5, 2025
Closes elastic#226225

## Summary
- Fixed the toast counter badge which was positioned behind the toast
(toast stack context sets [z-index:
9000](https://github.com/elastic/eui/blob/aa115fbc28a3fc107ebabbb75f6fdae75d32c976/packages/eui-theme-common/src/global_styling/variables/levels.ts#L42-L43))
- Original toast counter PR:
elastic#161738
- As discussed on that PR, a more robust approach would include this
counter in the EUI component itself but it seems that it was discarded
here: elastic/eui#6945 after Kibana's usecase
being covered by this simpler approach

## Visuals
### Before/After Success

<img width="345" height="77" alt="Screenshot 2025-07-24 at 11 27 06"
src="https://github.com/user-attachments/assets/47ac83d4-7c4b-4b12-ba34-a1c124fe8780"
/>

<img width="349" height="78" alt="Screenshot 2025-07-24 at 11 27 54"
src="https://github.com/user-attachments/assets/dac9ddf0-c7b2-47a5-971e-d83c67ed54b8"
/>

### Before/After Info Flavour

<img width="346" height="78" alt="Screenshot 2025-07-24 at 11 36 50"
src="https://github.com/user-attachments/assets/72fe86a3-9a76-4517-8d69-4ef544d6ec4b"
/>

<img width="346" height="77" alt="Screenshot 2025-07-24 at 11 37 20"
src="https://github.com/user-attachments/assets/62c8365d-602e-4164-8e69-5afcf1ab9e09"
/>

### Before/After Success Mobile
<img width="398" height="135" alt="Screenshot 2025-07-24 at 11 29 39"
src="https://github.com/user-attachments/assets/7005eefd-6ed3-4a70-8bff-ac02da7b542f"
/>

<img width="395" height="132" alt="Screenshot 2025-07-24 at 11 28 35"
src="https://github.com/user-attachments/assets/567111ce-c798-48e9-be67-ebff31553ac3"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:all-open Backport to all branches that could still receive a release release_note:fix Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// v8.17.10 v8.18.5 v8.19.1 v9.0.5 v9.1.1 v9.2.0

8 participants