kyma-project/website

The right-hand navigation doesn't highlight and expand the correct headlines

NHingerl opened this issue · 2 comments

Description

The right-hand navigation doesn't highlight and expand the correct headlines

I noticed the problem in https://kyma-project.io/docs/kyma/main/01-overview/main-areas/observability/obsv-04-telemetry-in-kyma/

I'm using Chrome Version 103.0.5060.134 on a Mac.

Expected result

When I scroll through a document with h2 headlines, I expect that the right-hand navigation highlights the section that I'm currently reading.
If there are h3 sub-headlines, I expect that the ones from the h2 section I'm currently reading are expanded.

Actual result

In the following screenshot, you see that I scrolled down to the Parameters h2 headline. But the right-hand navigation still highlights Architecture, and expands the Architecture sub-headlines instead of the Parameters sub-headlines.

image

Steps to reproduce

  1. Go to https://kyma-project.io/docs/kyma/latest/.
  2. In the left-hand navigation, select a document with multiple h2 headlines.
  3. Scroll to the bottom of the document and check whether the right-hand navigation highlights and expands the correct headline.

Troubleshooting

Might be related to #821

🥳