Skip to content

Question: how to use anchor tags with mwc-tab-bar & mwc-tab? #328

@samuelli

Description

@samuelli

Code snippet:

<mwc-tab-bar>
  <a href="/">
    <mwc-tab label="my link"></mwc-tab>
  </a>
</mwc-tab-bar

Expected: tab bar with anchor tags

Actual: tab bar breaks. The indicator stops working and the tabs no longer grow to fit the available space.

Not really sure what a good solution here is, but I think this is a pretty common scenario. If there's no elegant solutions, at least expose a href attribute?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions