Handled Active Element of Table of Content#2853
Merged
SB-venkatyadavilli merged 24 commits intomainfrom Dec 2, 2025
Merged
Conversation
✅ Deploy Preview for stoplight-elements ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for stoplight-elements-demo ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
@SB-venkatyadavilli @SB-ChetanKorde Any chance you guys can have a look at PRs in json-schema-viewer? For example, stoplightio/json-schema-viewer#293 |
Contributor
|
Please add details for ticket/issue and fix implemented. Also attach testing evidences in PR description. |
packages/elements-core/src/components/TableOfContents/TableOfContents.spec.tsx
Outdated
Show resolved
Hide resolved
packages/elements-core/src/components/TableOfContents/TableOfContents.tsx
Outdated
Show resolved
Hide resolved
packages/elements-core/src/components/TableOfContents/TableOfContents.tsx
Outdated
Show resolved
Hide resolved
packages/elements-core/src/components/TableOfContents/TableOfContents.tsx
Outdated
Show resolved
Hide resolved
packages/elements-core/src/components/TableOfContents/TableOfContents.tsx
Outdated
Show resolved
Hide resolved
SB-ChetanKorde
approved these changes
Nov 28, 2025
packages/elements-core/src/components/TableOfContents/TableOfContents.tsx
Outdated
Show resolved
Hide resolved
packages/elements-core/src/components/TableOfContents/TableOfContents.stories.tsx
Show resolved
Hide resolved
darekplawecki
approved these changes
Dec 1, 2025
Contributor
darekplawecki
left a comment
There was a problem hiding this comment.
Now looks good, thanks!
prafullaAtSB
approved these changes
Dec 2, 2025
Contributor
prafullaAtSB
left a comment
There was a problem hiding this comment.
Changes are good to go ahead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Elements Default PR Template
STOP-4166
Description
Previously, if the same item appeared multiple times in the Table of Contents, clicking on any instance would highlight all occurrences as active. With this fix, only the clicked element is shown as active, while all other instances remain inactive.
Handled Active Element of Table Of Content.
How Has This Been Tested?
Tested by running elements-dev-portal storybook and Yalc testing.
Screenshot(s)/recordings(s)
Before:
After:
4166-artifacts.mov
CONTRIBUTING.md