Skip to content

Commit def0c93

Browse files
authored
Merge pull request #269 from dolthub/liuliu/tab-disabled-props
components: disabled Tab color
2 parents 34fb19e + e1bf8eb commit def0c93

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/components/src/Tabs/Tab.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default function Tab(props: Props) {
3232
[css.activeTab]: isActive,
3333
[css.smallTab]: !!props.small,
3434
[css.darkTab]: !!props.dark,
35+
[css.disabledTab]: props.disabled,
3536
})}
3637
>
3738
{props.renderOnlyChild ? (

packages/components/src/Tabs/index.module.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
}
3535
}
3636

37+
.disabledTab,
38+
.disabledTab:hover{
39+
@apply text-storm-200 border-storm-200;
40+
}
41+
3742
.activeTab.darkTab,
3843
.darkTab:hover {
3944
@apply text-primary border-primary;

0 commit comments

Comments
 (0)