Skip to content

NXT-12133: Added stickTo prop for Scroller and VirtualList fo fixed focus position#371

Open
daniel-stoian-lgp wants to merge 5 commits into
developfrom
feature/NXT-12133
Open

NXT-12133: Added stickTo prop for Scroller and VirtualList fo fixed focus position#371
daniel-stoian-lgp wants to merge 5 commits into
developfrom
feature/NXT-12133

Conversation

@daniel-stoian-lgp

@daniel-stoian-lgp daniel-stoian-lgp commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Checklist

  • I have read and understand the contribution guide
  • A CHANGELOG entry is included
  • At least one test case is included for this feature or bug fix
  • Documentation was added or is not needed
  • This is an API breaking change

Issue Resolved / Feature Added

There is an Ux requirement to allow fixed focus position on the screen when scrolling

Resolution

Added stickTo prop for Scroller and VirtualList - When set to 'start' and direction is 'horizontal', moving focus with 5-way keys keeps the focus indicator at a fixed slot near the start (left in LTR, right in RTL) edge of the scroller and scrolls the list so the newly focused item lands in that slot. At the end of the list, when the item can no longer reach the fixed slot, the list scrolls only to its last position so the focused item stays visible.

Additional Considerations

Links

NXT-12133

Comments

Enact-DCO-1.0-Signed-off-by: Daniel Stoian (daniel.stoian@lgepartner.com)

@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.47619% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.48%. Comparing base (8276c61) to head (72e949f).
⚠️ Report is 2 commits behind head on develop.

Files with missing lines Patch % Lines
VirtualList/useThemeVirtualList.js 83.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #371      +/-   ##
===========================================
+ Coverage    82.06%   82.48%   +0.41%     
===========================================
  Files          153      153              
  Lines         7506     7529      +23     
  Branches      2261     2272      +11     
===========================================
+ Hits          6160     6210      +50     
+ Misses        1041     1026      -15     
+ Partials       305      293      -12     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant