Skip to content

Commit 4075aea

Browse files
committed
Display: Fix styles for the login form
1 parent 29f0132 commit 4075aea

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

assets/css/scss/atoms/_input_text.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.p-inputtext {
2-
@apply text-body-2 text-gray-90 bg-white px-3 py-2.5 border border-solid border-gray-50 transition appearance-none rounded-lg outline-transparent w-full;
2+
@apply text-body-2 text-gray-90 bg-white px-3 py-2.5 border border-solid border-gray-50 transition-colors appearance-none rounded-lg outline-transparent w-full;
33

44
&:enabled {
55
@apply hover:border-primary
@@ -15,9 +15,12 @@
1515
}
1616

1717
&.p-variant-filled {
18-
&:enabled {
19-
&:hover {}
20-
&:focus {}
18+
@apply bg-support-1;
19+
20+
&:enabled { }
21+
22+
&.p-filled {
23+
@apply text-primary;
2124
}
2225
}
2326

assets/css/scss/atoms/_password.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848

4949
&-toggle-mask-icon {
50-
@apply inset-y-3.5 right-3.5 text-gray-90 absolute w-4 h-4;
50+
@apply inset-y-0 right-4 text-gray-90 absolute w-4 h-full;
5151
}
5252

5353
&:has(&-mask-icon) &-input {

assets/vue/components/Login.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/>
77

88
<form
9-
class="login-section__form p-input-filled"
9+
class="login-section__form"
1010
@submit.prevent="onSubmitLoginForm"
1111
>
1212
<div class="field">
@@ -15,6 +15,7 @@
1515
v-model="login"
1616
:placeholder="t('Username')"
1717
type="text"
18+
variant="filled"
1819
/>
1920
</div>
2021

@@ -25,14 +26,19 @@
2526
:placeholder="t('Password')"
2627
input-id="password"
2728
toggle-mask
29+
variant="filled"
2830
/>
2931
</div>
3032

31-
<div v-if="requires2FA" class="field">
33+
<div
34+
v-if="requires2FA"
35+
class="field"
36+
>
3237
<InputText
3338
v-model="totp"
3439
:placeholder="t('Enter 2FA code')"
3540
type="text"
41+
variant="filled"
3642
/>
3743
</div>
3844

0 commit comments

Comments
 (0)