Skip to content

Commit 93f52dd

Browse files
committed
fix: updated screenshots
1 parent 1b26b9d commit 93f52dd

9 files changed

Lines changed: 25 additions & 23 deletions

File tree

packages/pattern-lock-v1/src/__snapshots__/component.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports[`PatternLockV1 test Snapshot tests should match snapshot 1`] = `
99
class="message"
1010
/>
1111
<div
12-
class="forgotBtn forgotBtn hiddenBtn"
12+
class="forgotBtnContainer forgotBtnContainer hiddenBtn"
1313
/>
1414
</div>
1515
</div>
@@ -26,7 +26,7 @@ exports[`PatternLockV1 test Snapshot tests should match snapshot with error prop
2626
Error message
2727
</div>
2828
<div
29-
class="forgotBtn forgotBtn hiddenBtn"
29+
class="forgotBtnContainer forgotBtnContainer hiddenBtn"
3030
/>
3131
</div>
3232
</div>

packages/pattern-lock-v1/src/components/base-pattern-lock/Component.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,14 @@ export const BasePatternLock = forwardRef<
126126
extraBounds={extraBounds}
127127
hover={hover}
128128
/>
129-
130-
{showForgotCodeBtn ? (
131-
<div className={cn(commonStyles.forgotBtnContainer, styles.forgotBtnContainer)}>
129+
<div
130+
className={cn(
131+
commonStyles.forgotBtnContainer,
132+
styles.forgotBtnContainer,
133+
styles.hiddenBtn,
134+
)}
135+
>
136+
{showForgotCodeBtn && (
132137
<ButtonMobile
133138
view='transparent'
134139
className={cn(commonStyles.forgotBtn, styles.forgotBtn)}
@@ -137,14 +142,8 @@ export const BasePatternLock = forwardRef<
137142
>
138143
{forgotCodeBtnText}
139144
</ButtonMobile>
140-
</div>
141-
) : (
142-
<div
143-
className={cn(commonStyles.forgotBtn, styles.forgotBtn, {
144-
[styles.hiddenBtn]: Boolean(styles.hiddenBtn),
145-
})}
146-
/>
147-
)}
145+
)}
146+
</div>
148147
</div>
149148
);
150149
},

packages/pattern-lock-v1/src/components/base-pattern-lock/index.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
justify-content: center;
3434
}
3535

36+
.forgotBtnContainer,
3637
.forgotBtn.forgotBtn.forgotBtn {
3738
min-height: var(--size-xs-height);
3839
}

packages/pattern-lock-v1/src/mobile/mobile.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
.forgotBtnContainer {
1515
margin-top: var(--gap-32);
1616
}
17+
.forgotBtnContainer,
1718
.forgotBtn.forgotBtn.forgotBtn {
1819
min-height: var(--size-s-height);
1920
}
@@ -24,6 +25,7 @@
2425
}
2526

2627
@media screen and (min-width: 390px) {
28+
.forgotBtnContainer,
2729
.forgotBtn.forgotBtn.forgotBtn {
2830
min-height: var(--size-m-height);
2931
}
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)