diff --git a/assets/css/scss/index.scss b/assets/css/scss/index.scss index 35b9d64c9d7..462a64726a8 100755 --- a/assets/css/scss/index.scss +++ b/assets/css/scss/index.scss @@ -36,6 +36,7 @@ @import "atoms/toast"; @import "atoms/wysiwyg"; +@import "molecules/chip"; @import "molecules/course_tool"; @import "molecules/datepicker"; @import "molecules/empty_state"; diff --git a/assets/css/scss/molecules/_chip.scss b/assets/css/scss/molecules/_chip.scss new file mode 100644 index 00000000000..3af1310fc0d --- /dev/null +++ b/assets/css/scss/molecules/_chip.scss @@ -0,0 +1,25 @@ +.p-chip { + @apply inline-flex items-center text-gray-90 bg-support-2 rounded-full px-3 py-0; + + & &-text { + @apply text-caption my-2 mx-0; + } + + & &-icon { + @apply mr-2; + + &.pi { + @apply text-caption; + } + } + + & &-remove-icon { + @apply text-caption cursor-pointer ml-2 rounded-full transition-none outline-none + focus-visible:outline-none focus-visible:drop-shadow-lg + focus:outline-none; + } + + & img { + @apply rounded-full w-9 h-9 -ml-3 mr-2; + } +} \ No newline at end of file diff --git a/assets/vue/components/basecomponents/BaseChip.vue b/assets/vue/components/basecomponents/BaseChip.vue index 2bd9d50fc93..b7995f84754 100644 --- a/assets/vue/components/basecomponents/BaseChip.vue +++ b/assets/vue/components/basecomponents/BaseChip.vue @@ -4,11 +4,21 @@ :label="value[labelField]" :removable="isRemovable" @remove="$emit('remove', value)" - /> + > + +