Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Cleaner Navigation Outline for Nested Steps/Tabs #5047

Open
NolanTrem opened this issue Oct 30, 2024 · 0 comments
Open

[Feature] Cleaner Navigation Outline for Nested Steps/Tabs #5047

NolanTrem opened this issue Oct 30, 2024 · 0 comments

Comments

@NolanTrem
Copy link

Problem description

When using nested Steps and Tabs components, the current "On this page" outline repeats the step numbers for each tab variation. If the steps are identical across tabs, I'd prefer to show each step number only once in the outline.

Why would it be useful?

When documenting alternative implementations (e.g., Option A vs Option B) that follow the same steps, the current outline becomes unnecessarily verbose. Since users are following the same step numbers regardless of their chosen option, showing the steps once would provide a cleaner and more focused navigation experience.

Additional context

Screenshot 2024-10-30 at 12 38 04 PM

Version 1 (Steps outside):
<Steps>
  ### Step 1
    <Tabs>
      <Tab title="Option A">
        This is content for Option A in Step 1.
      </Tab>
      <Tab title="Option B">
        This is content for Option B in Step 1.
      </Tab>
    </Tabs>

  ### Step 2
    <Tabs>
      <Tab title="Option A">
        This is content for Option A in Step 2.
      </Tab>
      <Tab title="Option B">
        This is content for Option B in Step 2.
      </Tab>
    </Tabs>
  
  ### Step 3
    This is common content for Step 3.
</Steps>

Version 2 (Tabs outside):
<Tabs>
  <Tab title="Option A">
    <Steps>
      ### Step 1
        This is content for Option A in Step 1.

      ### Step 2
        This is content for Option A in Step 2.

      ### Step 3
        This is common content for Step 3.
    </Steps>
  </Tab>

  <Tab title="Option B">
    <Steps>
      ### Step 1
        This is content for Option B in Step 1.

      ### Step 2
        This is content for Option B in Step 2.

      ### Step 3
        This is common content for Step 3.
    </Steps>
  </Tab>
</Tabs>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant