-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(table-of-contents): add dynamic copy knobs (#7676)
### Related Ticket(s) #5644 ### Description This PR updates the web components, React wrapper, and React storybook Table of Contents stories according to match the expected content described in #5644: * only "Default" (vertical) and "Horizontal" stories remain * "With heading content" knob in default story toggles a link list header instead of an image * the number of items is limited from 4-8 and the copy can be customized. This does not work properly in the web components storybook UI so you will need to view the story in a separate tab. This will work in the React storybook after #7687 is merged ### Changelog **New** - dynamic content knobs (the table of contents component does not update when its child elements change though, need to view story in new tab for updates) - "Horizontal" story in React - "Default" story in React **Changed** - "Default" story in web components and react wrapper **Removed** - obsolete React stories - "With heading content" stories in all storybooks
- Loading branch information
Showing
11 changed files
with
646 additions
and
1,908 deletions.
There are no files selected for viewing
1,378 changes: 330 additions & 1,048 deletions
1,378
packages/react/src/__tests__/__snapshots__/storyshots.test.js.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Oops, something went wrong.