Skip to content

Commit 95c6779

Browse files
authored
Tab should show pointer on mouse over (#801)
1 parent 4c6f2b6 commit 95c6779

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/components/tabs/Tabs.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,11 @@ const Tabs = props => {
7474
childProps.activeLabelClassName),
7575
{active}
7676
)}
77-
// href="#"
78-
style={
79-
active
80-
? {...childProps.label_style, ...childProps.active_label_style}
81-
: childProps.label_style
82-
}
77+
style={{
78+
...(active && childProps.active_label_style),
79+
...(!childProps.disabled && {cursor: 'pointer'}),
80+
...childProps.label_style
81+
}}
8382
disabled={childProps.disabled}
8483
onClick={() => {
8584
if (!childProps.disabled) {

0 commit comments

Comments
 (0)