Skip to content

Commit b95891e

Browse files
committed
fix(style): Fix less and sass to correctly generate tab--disabled class
1 parent ccf9c23 commit b95891e

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

style/react-tabs.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@
2222
border-radius: 5px 5px 0 0;
2323
}
2424

25-
.react-tabs__tab-panel {
26-
display: none;
27-
}
28-
29-
.react-tabs__tab-panel--selected {
30-
display: block;
31-
}
32-
3325
.react-tabs__tab--disabled {
3426
color: GrayText;
3527
cursor: default;
@@ -50,3 +42,11 @@
5042
bottom: -5px;
5143
background: #fff;
5244
}
45+
46+
.react-tabs__tab-panel {
47+
display: none;
48+
}
49+
50+
.react-tabs__tab-panel--selected {
51+
display: block;
52+
}

style/react-tabs.less

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
color: black;
2222
border-radius: 5px 5px 0 0;
2323
}
24+
25+
&--disabled {
26+
color: GrayText;
27+
cursor: default;
28+
}
29+
2430
&:focus {
2531
box-shadow: 0 0 5px hsl(208, 99%, 50%);
2632
border-color: hsl(208, 99%, 50%);
@@ -44,10 +50,5 @@
4450
&--selected {
4551
display: block;
4652
}
47-
48-
&--disabled {
49-
color: GrayText;
50-
cursor: default;
51-
}
5253
}
5354
}

style/react-tabs.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
color: black;
2222
border-radius: 5px 5px 0 0;
2323
}
24+
25+
&--disabled {
26+
color: GrayText;
27+
cursor: default;
28+
}
29+
2430
&:focus {
2531
box-shadow: 0 0 5px hsl(208, 99%, 50%);
2632
border-color: hsl(208, 99%, 50%);
@@ -44,10 +50,5 @@
4450
&--selected {
4551
display: block;
4652
}
47-
48-
&--disabled {
49-
color: GrayText;
50-
cursor: default;
51-
}
5253
}
5354
}

0 commit comments

Comments
 (0)