Skip to content

[Tab] Add support for full width #682

@infernova

Description

@infernova

Prerequisites

Proposal

Sample Implementation

Image

Code implementation

src/components/Tab/tab-group.css

:host([fullWidth][orientation="horizontal"]) slot[name="nav"]::slotted(sgds-tab) {
  width: 100%;
}

src/components/Tab/tab.css

:host([fullWidth][orientation="horizontal"]) .tab {
  justify-content: center;
}

Motivation and context

We have some use cases in Product Portal for a full width tab so I thought it would be more efficient to implement this at the SGDS level rather than the product level

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions