Skip to content

Tabs as nav example doesn't match html equivalent #2607

@jgiardino

Description

@jgiardino

When I look at the HTML examples for Tabs, the Tabs using the nav element shows the tabs as <a> instead of <button> elements.

When I look at a similar example for react, I don't see <a> elements being used for the tabs. And it isn't obvious to me from this example how to use <a> elements instead of <button> elements.

If I add href="#someurl" to a <Tab> and inspect the html, I do see that the tab converts to a <a href="#someurl" ...> instead of a <button>. But I don't see this prop/attribute noted in the props documentation.

For this issue:

  • Should an item be added for href in the <Tab> props documentation?
    • actually, are there other props that should be included for <Tab>? I don't see a section listing any props for <Tab>
  • Can we update the react example to have parity with the html example, and use <a> instead of <button> in the examples that use the <nav> element?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions