Skip to content

[Tab] TabIndicator z position is the same as the tab label and icon #10123

@cvanem

Description

@cvanem

Summary

I find it to useful to have a tab selector that has a full height TabIndicator that does not block the tab's icon and label. This can be accomplished in userspace by overriding the classes below, but is there any reason that the TabIndicator position should not be behind the icon and label by default? Possibly even go as far as having a tabIndicatorFullHeight option on the Tab component?

tabIndicator: {		
	height: '100%',
	zIndex: 0,
},
labelContainer: {
	zIndex: 1,
},
rootLabelIcon: {
	zIndex: 1,
},

Expected Behavior

I would expect the TabIndicator to not block the text and icon and show up behind them when the TabIndicator height causes it to overlap the text and icon.

Current Behavior

Currently when the TabIndicator height is set to a value that will overlap the text and icon, the TabIndicator blocks the text and icon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    not plannedThe problem seems valid, but we don't intend to fix it (won't fix).scope: tabsChanges related to the tabs.type: new featureExpand the scope of the product to solve a new problem.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions