tabs: URL referencing

Open
#123 6 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
markdown, react, typescript
Domain
frontend, web-dev

Research direction

No file or test is named. Start by locating the initial tabs implementation and the navigation handling, then verify the remaining unchecked requirement: preserving the tab query argument when navigating to another page. Done means the selected tab remains remembered across page navigation.

Written by the indexing model from the issue text.

Description

A: website epic p2-nice-to-have

Given:

<!-- /some/page.md -->
<toggle>
<tab title="Foo">
</tab>
<tab title="Bar">

some text

### sub section

</tab>
</toggle>

Should be able to use:

  • /some/page?tab=Bar (or /some/page#Bar?) to auto-open the appropriate tab (p1-important, #130)
    • /some/page/?tab=Bar#sub-section (or /some/page#Bar-sub-section?) to auto-open the tab and scroll to containing section (p2-nice-to-have)
  • remember the ?tab=<arg> when navigating to a different page (p2-nice-to-have)

Other tasks:

  • initial tabs implementation (#113)
    • update styling a little (#136, TODO: follow-up)

  • blocking #122
  • related #70
Dominant language
TypeScript
Stars
13
Forks
22
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from iterative/cml.dev

All issues in iterative/cml.dev

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.