epam / epam/UUI

[Scroll Spy]: Incorrect highlighting of currently viewed section

Open
#2,021 0 comments 0 reactions 0 assignees View on GitHub
bug Contributor needed
Dominant language
TypeScript
Stars
247
Forks
78
Avg merge
14h 27m
Merged PRs (30d)
15

Description

## Description

Active link is not always highlighted correctly

## Steps to Reproduce

1. Open [Scroll Spy docs](https://uui.epam.com/documents?id=scrollSpy&theme=promo)
2. Click navigation links in any order
3. Use scrolling inside the sections container

## Actual result

https://github.com/epam/UUI/assets/45727603/a2e2cfca-16e7-416e-b39e-a3fbbfff9cba

## Expected result

The active link is always be highlighted corresponding to the section that is currently at the top of the visible area. If the container is scrolled to the bottom, the last link is highlighted.

## Environment

* UUI version: 5.6.1
* Browser name: Chrome 121
* Operating System: Win10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.