Skip to content

Commit faa87d7

Browse files
committed
feat: update default styles
1 parent f1d1e9d commit faa87d7

File tree

2 files changed

+13
-18
lines changed

2 files changed

+13
-18
lines changed

src/index.css

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
1-
:root {
2-
--ReactInputVerificationCode-itemWidth: 4.5rem;
3-
--ReactInputVerificationCode-itemHeight: 5rem;
4-
--ReactInputVerificationCode-itemSpacing: 1rem;
5-
}
6-
7-
.ReactInputVerificationCode__container {
1+
.ReactInputVerificationCode-container {
82
display: flex;
9-
gap: var(--ReactInputVerificationCode-itemSpacing);
3+
gap: 0.5rem;
104
}
115

12-
.ReactInputVerificationCode__item {
13-
width: var(--ReactInputVerificationCode-itemWidth);
14-
height: var(--ReactInputVerificationCode-itemHeight);
6+
.ReactInputVerificationCode-item {
7+
width: 4rem;
8+
height: 4rem;
159
padding: 0;
1610
border-radius: 4px;
17-
font-size: 1.5rem;
18-
font-weight: 400;
11+
font-size: 1.2rem;
1912
text-align: center;
2013
border: 0;
21-
box-shadow: inset 0 0 0 1px #ccc;
14+
color: #555;
15+
box-shadow: 0 0 0 1px #ccc;
16+
outline: 0;
2217
transition: box-shadow 0.2s ease-out;
2318
}
2419

25-
.ReactInputVerificationCode__item:focus {
26-
box-shadow: inset 0 0 0 2px #888;
20+
.ReactInputVerificationCode-item:focus {
21+
box-shadow: 0 0 0 2px #333;
2722
}

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ const ReactInputVerificationCode = ({
212212
}, [inputsRefs]);
213213

214214
return (
215-
<div className='ReactInputVerificationCode__container'>
215+
<div className='ReactInputVerificationCode-container'>
216216
{/* <S.Input
217217
autoComplete='one-time-code'
218218
type='text'
@@ -224,7 +224,7 @@ const ReactInputVerificationCode = ({
224224
<input
225225
key={i}
226226
ref={ref}
227-
className='ReactInputVerificationCode__item'
227+
className='ReactInputVerificationCode-item'
228228
data-cy={`${dataCy}-${i}-item`}
229229
value={values[i]}
230230
onChange={(event) => onInputChange(event, i)}

0 commit comments

Comments
 (0)