This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
ClrTabs: Ability to set custom text for overflow drop down button #5576
Unanswered
tarangkhandelwal
asked this question in
Ideas
Replies: 2 comments 1 reply
-
I converted the original issue into a discussion so we can take it into consideration as we develop Clarity Core. |
Beta Was this translation helpful? Give feedback.
1 reply
-
At first glance, yes this would be something Clarity Core would possibly support. We won't make this change in Clarity Angular at this stage, but as we consider building the Core tabs we will look at keeping this configurable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
The clarity ClrTabs component supports overflow capability where-in some tabs can be put behind a drop-down. This is a useful pattern in the case of a large number of tabs and limited available width. The current implementation however doesn't show the label of the selected item from within the drop down.
What is the change?
To be able to set custom text and potentially show the selected item text upfront. This will show the selected item without clicking the drop-down and save an additional click.
Why should it go in Clarity?
This is an enhancement for existing component behavior that Clarity supports.
Does this change impact existing behaviors? If so how?
Should not impact existing behavior as new behavior can be input-driven
If this change introduces a new behavior, is this behavior accessible?
Updating the label should not introduce any new accessibly issues
Use case
We have a use case in a global search feature of our product.
We are having Nested Tabs where level 1 tabs are meant for Locations (Max 32).
For each location, we want to show one tab for each type of Resource available in the location. (~1-100)
Examples
Are there any examples in other projects that demonstrate this feature or enhancement?
Workarounds
The component today has static clr-icon used as content of the overflow button.
There seems to be no workaround for this.
Beta Was this translation helpful? Give feedback.
All reactions