Skip to content

Commit 25cfa16

Browse files
committed
fix(style): Correctly fix flash on iOS
1 parent 9680d06 commit 25cfa16

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

style/react-tabs.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.react-tabs {
2+
-webkit-tap-highlight-color: transparent;
3+
}
4+
15
.react-tabs__tab-list {
26
border-bottom: 1px solid #aaa;
37
margin: 0 0 10px;
@@ -13,7 +17,6 @@
1317
list-style: none;
1418
padding: 6px 12px;
1519
cursor: pointer;
16-
-webkit-tap-highlight-color: transparent;
1720
}
1821

1922
.react-tabs__tab--selected {

style/react-tabs.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.react-tabs {
2+
-webkit-tap-highlight-color: transparent;
3+
24
&__tab-list {
35
border-bottom: 1px solid #aaa;
46
margin: 0 0 10px;
@@ -14,7 +16,6 @@
1416
list-style: none;
1517
padding: 6px 12px;
1618
cursor: pointer;
17-
-webkit-tap-highlight-color: transparent;
1819

1920
&--selected {
2021
background: #fff;

style/react-tabs.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.react-tabs {
2+
-webkit-tap-highlight-color: transparent;
3+
24
&__tab-list {
35
border-bottom: 1px solid #aaa;
46
margin: 0 0 10px;
@@ -14,7 +16,6 @@
1416
list-style: none;
1517
padding: 6px 12px;
1618
cursor: pointer;
17-
-webkit-tap-highlight-color: transparent;
1819

1920
&--selected {
2021
background: #fff;

0 commit comments

Comments
 (0)