Skip to content

Commit eb1c7c2

Browse files
author
ugogo
committed
fix inset box-shadow in Safari
1 parent 42eb6c2 commit eb1c7c2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/index.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,19 @@
1818
font-weight: 800;
1919
line-height: var(--itemHeight);
2020
text-align: center;
21+
border: 0;
2122
}
2223

2324
.ReactVerificationCode__item {
25+
--boxShadowColor: #ccc;
26+
--boxShadowSize: 1px;
27+
box-shadow: inset 0 0 0 var(--boxShadowSize) var(--boxShadowColor);
2428
transition: box-shadow 0.2s ease-out;
25-
box-shadow: 0 0 0 1px inset #ccc;
2629
}
2730

2831
.ReactVerificationCode__item.is-active {
29-
box-shadow: 0 0 0 2px inset #888;
32+
--boxShadowColor: #888;
33+
--boxShadowSize: 2px;
3034
}
3135

3236
.ReactVerificationCode__input {

0 commit comments

Comments
 (0)