Skip to content

Commit aaa01da

Browse files
committed
WIP: Adding a container parrent for submit button and andimation to use as playground.
1 parent 1155bcc commit aaa01da

1 file changed

Lines changed: 41 additions & 32 deletions

File tree

kolibri/plugins/user_auth/frontend/views/SignInPage/PictureSignIn/PicturePasswordGrid.vue

Lines changed: 41 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -56,38 +56,40 @@
5656
</template>
5757
</div>
5858

59-
<!-- Submit button: shows only a forward-arrow icon; the aria-label
60-
cycles through four instructional states as the sequence is built. -->
61-
<SubmitBurstAnimation
62-
v-if="burstVisible"
63-
class="submit-burst"
64-
/>
65-
<button
66-
type="submit"
67-
class="submit-button"
68-
:class="[
69-
$computedClass({
70-
':hover': submitEnabled
71-
? {
72-
backgroundColor: $themeTokens.primaryDark,
73-
}
74-
: {},
75-
}),
76-
{ pulsing: submitPulsing },
77-
{ bouncing: arrowBouncing },
78-
]"
79-
data-testid="submit-button"
80-
:aria-disabled="!submitEnabled ? 'true' : undefined"
81-
:aria-label="submitButtonAriaLabel"
82-
:style="submitButtonStyle"
83-
>
84-
<KIcon
85-
data-testid="submit-icon"
86-
class="submit-icon"
87-
icon="forward"
88-
:color="submitEnabled ? $themeTokens.textInverted : $themePalette.grey.v_300"
59+
<div class="submit-container">
60+
<!-- Submit button: shows only a forward-arrow icon; the aria-label
61+
cycles through four instructional states as the sequence is built. -->
62+
<SubmitBurstAnimation
63+
v-if="burstVisible"
64+
class="submit-burst"
8965
/>
90-
</button>
66+
<button
67+
type="submit"
68+
class="submit-button"
69+
:class="[
70+
$computedClass({
71+
':hover': submitEnabled
72+
? {
73+
backgroundColor: $themeTokens.primaryDark,
74+
}
75+
: {},
76+
}),
77+
{ pulsing: submitPulsing },
78+
{ bouncing: arrowBouncing },
79+
]"
80+
data-testid="submit-button"
81+
:aria-disabled="!submitEnabled ? 'true' : undefined"
82+
:aria-label="submitButtonAriaLabel"
83+
:style="submitButtonStyle"
84+
>
85+
<KIcon
86+
data-testid="submit-icon"
87+
class="submit-icon"
88+
icon="forward"
89+
:color="submitEnabled ? $themeTokens.textInverted : $themePalette.grey.v_300"
90+
/>
91+
</button>
92+
</div>
9193
</div>
9294
</form>
9395

@@ -476,10 +478,17 @@
476478
border-radius: 16px;
477479
}
478480
481+
.submit-container {
482+
position: relative;
483+
// display: inline-block;
484+
}
485+
479486
.submit-button {
480-
display: flex;
487+
// display: flex;
481488
align-items: center;
482489
justify-content: center;
490+
width: 100%;
491+
height: 100%;
483492
padding: 0;
484493
border: 0;
485494
border-radius: 8px;

0 commit comments

Comments
 (0)