Skip to content

Comments

[SharedUX Project Navigation] Fix issue with items in panel openers when side nav is collapsed#227705

Merged
tsullivan merged 9 commits intoelastic:mainfrom
tsullivan:fix/227616
Jul 15, 2025
Merged

[SharedUX Project Navigation] Fix issue with items in panel openers when side nav is collapsed#227705
tsullivan merged 9 commits intoelastic:mainfrom
tsullivan:fix/227616

Conversation

@tsullivan
Copy link
Member

@tsullivan tsullivan commented Jul 11, 2025

Closes #227616

The bug was caused some time around #210893 where support for the landing pages of panel opener nav items ("four squares" design) was removed. During that removal, the behavior changed when the side nav is collapsed: panel opener items need to open as an accordion in that scenario.

Other changes

  • Initially, I thought the root cause was due to styling, so I cleaned up styles in navigation_panel.tsx and refactored them to use @emotion/react.

Release Note

Fixed a bug with the solution nav submenu items when the nav is collapsed.

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

  • [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
  • [ ] Documentation was added for features that require explanation or tutorials
  • Unit or functional tests were updated or added to match the most common scenarios
  • [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker list
  • [ ] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The release_note:breaking label should be applied in these situations.
  • [ ] Flaky Test Runner was used on any tests changed
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines
  • Review the backport guidelines and apply applicable backport:* labels.

): RenderAs => {
if (isSideNavCollapsed && navNode.renderAs === 'panelOpener' && !nodeHasLink(navNode))
return 'accordion'; // When the side nav is collapsed, we render panel openers as accordions if they don't have a landing page
if (isSideNavCollapsed && navNode.renderAs === 'panelOpener') return 'accordion'; // When the side nav is collapsed, we render panel openers as accordions
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the actual fix

import type { PanelSelectedNode } from '@kbn/core-chrome-browser';
import { usePanel } from './context';
import { getNavPanelStyles, getPanelWrapperStyles } from './styles';
import { navPanelStyles, panelWrapperStyles } from './styles';
Copy link
Member Author

Choose a reason for hiding this comment

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

Initially, I thought the bug was caused by styling, so I cleaned up styles in this component to use @emotion/react instead of @emotion/css.

@tsullivan tsullivan marked this pull request as ready for review July 11, 2025 20:40
@tsullivan tsullivan requested a review from a team as a code owner July 11, 2025 20:40
@tsullivan tsullivan added the ci:cloud-deploy Create or update a Cloud deployment label Jul 11, 2025
@bhavyarm
Copy link
Contributor

Tested on cloud deployment. Works fine!

small_Works_fine.mp4

Copy link
Contributor

@bhavyarm bhavyarm left a comment

Choose a reason for hiding this comment

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

LGTM. Tested on cloud deployment. Works fine!

@tsullivan tsullivan enabled auto-merge (squash) July 14, 2025 16:32
@elasticmachine
Copy link
Contributor

elasticmachine commented Jul 15, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #43 / image embeddable image embeddable should create an image embeddable

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
navigation 22.8KB 22.7KB -159.0B
serverless 23.6KB 23.5KB -120.0B
total -279.0B

History

@tsullivan tsullivan merged commit d85f216 into elastic:main Jul 15, 2025
12 of 13 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 15, 2025
…hen side nav is collapsed (elastic#227705)

Closes elastic#227616

The bug was caused some time around
elastic#210893 where support for the
landing pages of panel opener nav items ("four squares" design) was
removed. During that removal, the behavior changed when the side nav is
collapsed: panel opener items need to open as an accordion in that
scenario.

### Other changes
- Initially, I thought the root cause was due to styling, so I cleaned
up styles in `navigation_panel.tsx` and refactored them to use
`@emotion/react`.

### Release Note

Fixed a bug with the solution nav submenu items when the nav is
collapsed.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- ~~[ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~~
- ~~[ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~~
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- ~~[ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~~
- ~~[ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.~~
- ~~[ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed~~
- [x] 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)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

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

💔 Some backports could not be created

Status Branch Result
8.19 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.19:
- [Solution Side Nav] Fix panel styles (#219478)
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 227705

Questions ?

Please refer to the Backport tool documentation

@tsullivan
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
8.19

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

Questions ?

Please refer to the Backport tool documentation

tsullivan added a commit to tsullivan/kibana that referenced this pull request Jul 15, 2025
…hen side nav is collapsed (elastic#227705)

Closes elastic#227616

The bug was caused some time around
elastic#210893 where support for the
landing pages of panel opener nav items ("four squares" design) was
removed. During that removal, the behavior changed when the side nav is
collapsed: panel opener items need to open as an accordion in that
scenario.

### Other changes
- Initially, I thought the root cause was due to styling, so I cleaned
up styles in `navigation_panel.tsx` and refactored them to use
`@emotion/react`.

### Release Note

Fixed a bug with the solution nav submenu items when the nav is
collapsed.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- ~~[ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~~
- ~~[ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~~
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- ~~[ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~~
- ~~[ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.~~
- ~~[ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed~~
- [x] 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)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

(cherry picked from commit d85f216)

# Conflicts:
#	src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/styles.ts
tsullivan added a commit to kibanamachine/kibana that referenced this pull request Jul 15, 2025
…hen side nav is collapsed (elastic#227705)

Closes elastic#227616

The bug was caused some time around
elastic#210893 where support for the
landing pages of panel opener nav items ("four squares" design) was
removed. During that removal, the behavior changed when the side nav is
collapsed: panel opener items need to open as an accordion in that
scenario.

### Other changes
- Initially, I thought the root cause was due to styling, so I cleaned
up styles in `navigation_panel.tsx` and refactored them to use
`@emotion/react`.

### Release Note

Fixed a bug with the solution nav submenu items when the nav is
collapsed.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- ~~[ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~~
- ~~[ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~~
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- ~~[ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~~
- ~~[ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.~~
- ~~[ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed~~
- [x] 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)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

(cherry picked from commit d85f216)
tsullivan added a commit to tsullivan/kibana that referenced this pull request Jul 15, 2025
…hen side nav is collapsed (elastic#227705)

Closes elastic#227616

The bug was caused some time around
elastic#210893 where support for the
landing pages of panel opener nav items ("four squares" design) was
removed. During that removal, the behavior changed when the side nav is
collapsed: panel opener items need to open as an accordion in that
scenario.

### Other changes
- Initially, I thought the root cause was due to styling, so I cleaned
up styles in `navigation_panel.tsx` and refactored them to use
`@emotion/react`.

### Release Note

Fixed a bug with the solution nav submenu items when the nav is
collapsed.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- ~~[ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~~
- ~~[ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~~
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- ~~[ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~~
- ~~[ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.~~
- ~~[ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed~~
- [x] 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)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

(cherry picked from commit d85f216)

# Conflicts:
#	src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/styles.ts
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 16, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @tsullivan

tsullivan added a commit that referenced this pull request Jul 16, 2025
…eners when side nav is collapsed (#227705) (#228083)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[SharedUX Project Navigation] Fix issue with items in panel openers
when side nav is collapsed
(#227705)](#227705)

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

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

<!--BACKPORT [{"author":{"name":"Tim
Sullivan","email":"tsullivan@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-15T16:42:08Z","message":"[SharedUX
Project Navigation] Fix issue with items in panel openers when side nav
is collapsed (#227705)\n\nCloses
https://github.com/elastic/kibana/issues/227616\n\nThe bug was caused
some time around\nhttps://github.com//pull/210893 where
support for the\nlanding pages of panel opener nav items (\"four
squares\" design) was\nremoved. During that removal, the behavior
changed when the side nav is\ncollapsed: panel opener items need to open
as an accordion in that\nscenario.\n\n### Other changes\n- Initially, I
thought the root cause was due to styling, so I cleaned\nup styles in
`navigation_panel.tsx` and refactored them to
use\n`@emotion/react`.\n\n### Release Note\n\nFixed a bug with the
solution nav submenu items when the nav is\ncollapsed.\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- ~~[ ] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~~\n-
~~[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials~~\n- [x] [Unit
or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\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 and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~~\n-
~~[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.~~\n- ~~[ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed~~\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"d85f216c8749525cb360649a641754f343800f69","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","ci:cloud-deploy","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[SharedUX
Project Navigation] Fix issue with items in panel openers when side nav
is
collapsed","number":227705,"url":"https://github.com/elastic/kibana/pull/227705","mergeCommit":{"message":"[SharedUX
Project Navigation] Fix issue with items in panel openers when side nav
is collapsed (#227705)\n\nCloses
https://github.com/elastic/kibana/issues/227616\n\nThe bug was caused
some time around\nhttps://github.com//pull/210893 where
support for the\nlanding pages of panel opener nav items (\"four
squares\" design) was\nremoved. During that removal, the behavior
changed when the side nav is\ncollapsed: panel opener items need to open
as an accordion in that\nscenario.\n\n### Other changes\n- Initially, I
thought the root cause was due to styling, so I cleaned\nup styles in
`navigation_panel.tsx` and refactored them to
use\n`@emotion/react`.\n\n### Release Note\n\nFixed a bug with the
solution nav submenu items when the nav is\ncollapsed.\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- ~~[ ] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~~\n-
~~[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials~~\n- [x] [Unit
or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\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 and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~~\n-
~~[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.~~\n- ~~[ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed~~\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"d85f216c8749525cb360649a641754f343800f69"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/228067","number":228067,"state":"OPEN"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227705","number":227705,"mergeCommit":{"message":"[SharedUX
Project Navigation] Fix issue with items in panel openers when side nav
is collapsed (#227705)\n\nCloses
https://github.com/elastic/kibana/issues/227616\n\nThe bug was caused
some time around\nhttps://github.com//pull/210893 where
support for the\nlanding pages of panel opener nav items (\"four
squares\" design) was\nremoved. During that removal, the behavior
changed when the side nav is\ncollapsed: panel opener items need to open
as an accordion in that\nscenario.\n\n### Other changes\n- Initially, I
thought the root cause was due to styling, so I cleaned\nup styles in
`navigation_panel.tsx` and refactored them to
use\n`@emotion/react`.\n\n### Release Note\n\nFixed a bug with the
solution nav submenu items when the nav is\ncollapsed.\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- ~~[ ] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~~\n-
~~[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials~~\n- [x] [Unit
or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\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 and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~~\n-
~~[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.~~\n- ~~[ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed~~\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"d85f216c8749525cb360649a641754f343800f69"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Jul 16, 2025
…ners when side nav is collapsed (#227705) (#228067)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[SharedUX Project Navigation] Fix issue with items in panel openers
when side nav is collapsed
(#227705)](#227705)

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

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

<!--BACKPORT [{"author":{"name":"Tim
Sullivan","email":"tsullivan@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-15T16:42:08Z","message":"[SharedUX
Project Navigation] Fix issue with items in panel openers when side nav
is collapsed (#227705)\n\nCloses
https://github.com/elastic/kibana/issues/227616\n\nThe bug was caused
some time around\nhttps://github.com//pull/210893 where
support for the\nlanding pages of panel opener nav items (\"four
squares\" design) was\nremoved. During that removal, the behavior
changed when the side nav is\ncollapsed: panel opener items need to open
as an accordion in that\nscenario.\n\n### Other changes\n- Initially, I
thought the root cause was due to styling, so I cleaned\nup styles in
`navigation_panel.tsx` and refactored them to
use\n`@emotion/react`.\n\n### Release Note\n\nFixed a bug with the
solution nav submenu items when the nav is\ncollapsed.\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- ~~[ ] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~~\n-
~~[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials~~\n- [x] [Unit
or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\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 and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~~\n-
~~[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.~~\n- ~~[ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed~~\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"d85f216c8749525cb360649a641754f343800f69","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","ci:cloud-deploy","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[SharedUX
Project Navigation] Fix issue with items in panel openers when side nav
is
collapsed","number":227705,"url":"https://github.com/elastic/kibana/pull/227705","mergeCommit":{"message":"[SharedUX
Project Navigation] Fix issue with items in panel openers when side nav
is collapsed (#227705)\n\nCloses
https://github.com/elastic/kibana/issues/227616\n\nThe bug was caused
some time around\nhttps://github.com//pull/210893 where
support for the\nlanding pages of panel opener nav items (\"four
squares\" design) was\nremoved. During that removal, the behavior
changed when the side nav is\ncollapsed: panel opener items need to open
as an accordion in that\nscenario.\n\n### Other changes\n- Initially, I
thought the root cause was due to styling, so I cleaned\nup styles in
`navigation_panel.tsx` and refactored them to
use\n`@emotion/react`.\n\n### Release Note\n\nFixed a bug with the
solution nav submenu items when the nav is\ncollapsed.\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- ~~[ ] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~~\n-
~~[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials~~\n- [x] [Unit
or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\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 and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~~\n-
~~[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.~~\n- ~~[ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed~~\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"d85f216c8749525cb360649a641754f343800f69"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227705","number":227705,"mergeCommit":{"message":"[SharedUX
Project Navigation] Fix issue with items in panel openers when side nav
is collapsed (#227705)\n\nCloses
https://github.com/elastic/kibana/issues/227616\n\nThe bug was caused
some time around\nhttps://github.com//pull/210893 where
support for the\nlanding pages of panel opener nav items (\"four
squares\" design) was\nremoved. During that removal, the behavior
changed when the side nav is\ncollapsed: panel opener items need to open
as an accordion in that\nscenario.\n\n### Other changes\n- Initially, I
thought the root cause was due to styling, so I cleaned\nup styles in
`navigation_panel.tsx` and refactored them to
use\n`@emotion/react`.\n\n### Release Note\n\nFixed a bug with the
solution nav submenu items when the nav is\ncollapsed.\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- ~~[ ] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~~\n-
~~[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials~~\n- [x] [Unit
or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\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 and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~~\n-
~~[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.~~\n- ~~[ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed~~\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*`
labels.","sha":"d85f216c8749525cb360649a641754f343800f69"}}]}]
BACKPORT-->

Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 16, 2025
@tsullivan tsullivan deleted the fix/227616 branch July 16, 2025 23:46
Bluefinger pushed a commit to Bluefinger/kibana that referenced this pull request Jul 22, 2025
…hen side nav is collapsed (elastic#227705)

Closes elastic#227616

The bug was caused some time around
elastic#210893 where support for the
landing pages of panel opener nav items ("four squares" design) was
removed. During that removal, the behavior changed when the side nav is
collapsed: panel opener items need to open as an accordion in that
scenario.

### Other changes
- Initially, I thought the root cause was due to styling, so I cleaned
up styles in `navigation_panel.tsx` and refactored them to use
`@emotion/react`.

### Release Note

Fixed a bug with the solution nav submenu items when the nav is
collapsed.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- ~~[ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~~
- ~~[ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~~
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- ~~[ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~~
- ~~[ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.~~
- ~~[ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed~~
- [x] 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)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
…hen side nav is collapsed (elastic#227705)

Closes elastic#227616

The bug was caused some time around
elastic#210893 where support for the
landing pages of panel opener nav items ("four squares" design) was
removed. During that removal, the behavior changed when the side nav is
collapsed: panel opener items need to open as an accordion in that
scenario.

### Other changes
- Initially, I thought the root cause was due to styling, so I cleaned
up styles in `navigation_panel.tsx` and refactored them to use
`@emotion/react`.

### Release Note

Fixed a bug with the solution nav submenu items when the nav is
collapsed.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- ~~[ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)~~
- ~~[ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~~
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- ~~[ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~~
- ~~[ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.~~
- ~~[ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed~~
- [x] 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)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.
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 ci:cloud-deploy Create or update a Cloud deployment release_note:fix v8.19.0 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SolutionSideNav] Collapsed nav no longer allows expanding

4 participants