Skip to content

Commit c2ca9e6

Browse files
committed
Enhance OAuth tab icons with disabled state styling for better UX
1 parent 7d18998 commit c2ca9e6

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

ui/src/views/auth/Login.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@
154154
<a-tab-pane key="oauth" :disabled="!socialLogin">
155155
<template #tab>
156156
<span style="display: inline-flex; align-items: center; gap: 4px; color: inherit;">
157-
<img src="/assets/github.svg" alt="GitHub" style="width: 16px; height: 16px; display: block;" />
158-
<img src="/assets/google.svg" alt="Google" style="width: 16px; height: 16px; display: block;" />
157+
<img src="/assets/github.svg" alt="GitHub" class="oauth-tab-icon" :class="{ 'oauth-tab-icon--disabled': !socialLogin }" style="width: 16px; height: 16px; display: block;" />
158+
<img src="/assets/google.svg" alt="Google" class="oauth-tab-icon" :class="{ 'oauth-tab-icon--disabled': !socialLogin }" style="width: 16px; height: 16px; display: block;" />
159159
<span>{{ $t('label.login.external') }}</span>
160160
</span>
161161
</template>
@@ -694,6 +694,11 @@ export default {
694694
margin: 0 16px 0 0;
695695
}
696696
697+
.oauth-tab-icon--disabled {
698+
filter: grayscale(100%);
699+
opacity: 0.45;
700+
}
701+
697702
.mobile & {
698703
max-width: 500px;
699704
width: 98%;

0 commit comments

Comments
 (0)