Skip to content

Commit 6b1bf21

Browse files
authored
Change visibility toggle style on profile (#194)
* feat: visibility toggle style on profile * style: change profileStyle prop name to useProfileBoxStyle
1 parent c810d5e commit 6b1bf21

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

components/Form/AppDropDown.vue

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<select
66
:name="props.selectName"
77
:id="props.selectName"
8-
class="bg-right-top w-full px-4 py-4 rounded-lg dd-bg-blue"
8+
:class="useProfileBoxStyle ? 'profile-box-style' : 'default-style'"
99
@change="$emit('update:value', $event.target.value)"
1010
>
1111
<option
@@ -30,6 +30,10 @@ const props = defineProps({
3030
type: String,
3131
default: '',
3232
},
33+
useProfileBoxStyle: {
34+
type: Boolean,
35+
default: false
36+
}
3337
})
3438
</script>
3539
<style lang="postcss" scoped>
@@ -38,10 +42,21 @@ const props = defineProps({
3842
}
3943
4044
select {
45+
@apply w-full p-4 rounded-lg dd-bg-blue bg-no-repeat appearance-none bg-origin-content;
46+
}
47+
.default-style {
4148
background-image: url('/icons/arrow.png');
42-
background-repeat: no-repeat;
4349
background-size: 0.9rem;
44-
appearance: none;
45-
background-position: 7.75rem center;
50+
background-position: right center;
51+
}
52+
.profile-box-style {
53+
@apply h-10 w-40 border-2;
54+
padding: 6px;
55+
text-align: left;
56+
background: url('~/assets/icons/icon-eye-opened.svg');
57+
background-repeat: no-repeat;
58+
background-position: right center;
59+
background-origin: content-box;
60+
background-size: 1.2rem;
4661
}
4762
</style>

components/member/PermissionDropDown.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
22
<FormAppDropDown
3+
use-profile-box-style
34
:listOfItems="permissions"
45
:selectName="permissions[state.permissionStatus].text"
56
v-model:value="state.permissionStatus"

0 commit comments

Comments
 (0)