feature: Support href in tabs

Open
#5,783 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
html
Domain
frontend

Research direction

The issue names primary and secondary tabs, href navigation, and an SSR use case, but no files, tests, or entry points. Start by locating the tab component implementations and existing tab tests; done means both tab variants support the requested href behavior without losing their normal tab functionality, including the stated SSR scenario.

Written by the indexing model from the issue text.

Description

Description

I think it might come in handy if there was support for href in primary/secondary tabs(You can wrap the tab in <a> obviously but then that actual tab won't work inside of md-tab component). This might be particularly useful for SSR situations. Currently, if you want to navigate to a different page, you need to do it manually through code.

Dominant language
SCSS
Stars
11.3k
Forks
1.1k
Avg merge
20h 28m
Merged PRs (30d)
13

Contributor guide

Open the contributing guide

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 material-components/material-web

All issues in material-components/material-web

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.