Skip to content

Tabs Component Labels should handle text overflow #1682

@diwakarang

Description

@diwakarang

Describe the bug
When Tabs label is too long to be displayed inside the available space it should force the text to trucate with ellipsis. That is not working

To Reproduce

  1. Visit Halstack component website, and add following values to list of tabs

     [
          {
            label: "Customer Journey V2 Jan 2023.pdf",
          },
          {
            label: "Market Compensation Levels Report Q1 2023.pdf",
          },
          {
            label: "Market Reform Contract",
          },
          {
            label: "Market Reform Proposal",
          }
     ] 

  1. It can be noticed that tabs label doesn't get truncated with ellipsis.

Expected behaviour
When Tabs label is too long to be displayed inside the available space it should force the text to trucate with ellipsis
As mentioned in the screenshot below.

Screenshots
Usage mentioned in Docs
Tabs

Additional context
This is observed, when it is required to use lengthy labels for Tabs

Add labels
Tabs, text overflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    AnswersA high priority issue from the Assure Answers team.bugSomething isn't workingjiraThis task is referenced in a story of Jira

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions