patternfly-elements icon indicating copy to clipboard operation
patternfly-elements copied to clipboard

fix(core): scroll-spy for non-contiguous regions

Open bennypowers opened this issue 5 months ago • 9 comments

See https://github.com/RedHat-UX/red-hat-design-system/pull/2471

What I did

  1. Simplify the scroll-spy logic, and reconcile scroll-spy active link on scroll

Testing Instructions

  1. Check out existing jump-links elements

Notes to Reviewers

  1. There might be serious perf problems with the approach taken here so it should be validated against realworld pages

bennypowers avatar Jul 22 '25 13:07 bennypowers

🦋 Changeset detected

Latest commit: 616bd7554300e540515ecbd04f6e98d8e3b9845f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@patternfly/pfe-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Jul 22 '25 13:07 changeset-bot[bot]

Deploy Preview for patternfly-elements ready!

Name Link
Latest commit e0469328212eb4a1e84bbc3bd59ba4cae0292a81
Deploy Preview https://deploy-preview-2920--patternfly-elements.netlify.app/

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Jul 22 '25 13:07 netlify[bot]

✅ Commitlint tests passed!

More Info
{
  "valid": true,
  "errors": [],
  "warnings": [],
  "input": "fix(core): scroll-spy for non-contiguous regions"
}

github-actions[bot] avatar Jul 22 '25 13:07 github-actions[bot]

SSR Test Run for 5350d24b57c3319cb85995383379fba97ef781b4: Report

github-actions[bot] avatar Jul 22 '25 13:07 github-actions[bot]

SSR Test Run for ce07c70669fc035cacb6d67af06a243276aaf4a2: Report

github-actions[bot] avatar Jul 22 '25 14:07 github-actions[bot]

SSR Test Run for 000acaa2c4bb809041dd7e47f1c7e25cf24a7feb: Report

github-actions[bot] avatar Jul 22 '25 14:07 github-actions[bot]

SSR Test Run for bd870c4e5de2343f808d064964b118df74f25e5f: Report

github-actions[bot] avatar Jul 29 '25 16:07 github-actions[bot]

SSR Test Run for 1c05b386ebb6848c7eaad96ff7420ed632c5f020: Report

github-actions[bot] avatar Aug 06 '25 11:08 github-actions[bot]

SSR Test Run for e0469328212eb4a1e84bbc3bd59ba4cae0292a81: Report

github-actions[bot] avatar Aug 13 '25 14:08 github-actions[bot]