Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions assets/css/scss/_survey.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,79 @@
}
}
}

.survey_question .field {
@apply flex flex-col gap-3 w-full;
}

.survey_question .radio-inline {
@apply flex items-center gap-3 mb-2;
}

.survey_question .p-radiobutton {
@apply relative flex items-center justify-center w-5 h-5;
}

.survey_question .p-radiobutton-box {
@apply w-5 h-5 border border-gray-50 rounded-full flex items-center justify-center bg-white transition-all duration-150 ease-in-out;
}

.survey_question .p-radiobutton-input {
@apply absolute opacity-0 cursor-pointer inset-0 w-full h-full;
}

.survey_question .p-radiobutton-checked .p-radiobutton-box {
@apply border-primary bg-primary;
}

.survey_question .p-radiobutton-icon {
@apply w-2 h-2 bg-white rounded-full hidden;
}

.survey_question .p-radiobutton-checked .p-radiobutton-icon {
@apply block;
}

.survey_question .radio-inline label {
@apply flex items-center text-gray-90 text-base font-normal cursor-pointer select-none;
}

.survey_question .radio-inline label p {
@apply m-0 leading-tight;
}

.survey_question .checkbox-inline {
@apply flex items-center gap-3 mb-2;
}

.survey_question .p-checkbox {
@apply relative flex items-center justify-center w-5 h-5;
}

.survey_question .p-checkbox-box {
@apply w-5 h-5 border border-gray-50 rounded-md flex items-center justify-center bg-white transition-all duration-150 ease-in-out;
}

.survey_question .p-checkbox-input {
@apply absolute opacity-0 cursor-pointer inset-0 w-full h-full;
}

.survey_question .p-checkbox-icon {
@apply w-3 h-3 text-white hidden;
}

.survey_question .p-checkbox-input:checked + .p-checkbox-box {
@apply border-primary bg-primary;
}

.survey_question .p-checkbox-input:checked + .p-checkbox-box .p-icon {
@apply block;
}

.survey_question .checkbox-inline label {
@apply flex items-center text-gray-90 text-base font-normal cursor-pointer select-none;
}

.survey_question .checkbox-inline label p {
@apply m-0 leading-tight;
}
12 changes: 10 additions & 2 deletions assets/vue/components/Breadcrumb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
v-bind="props.action"
@click="handleBreadcrumbClick(item)"
>
{{ item.label }}
{{ stripHtml(item.label) }}
</BaseAppLink>
<span v-else>{{ item.label }}</span>
<span
v-else
v-text="stripHtml(item.label)"
></span>
</template>

<template #separator> /</template>
Expand Down Expand Up @@ -422,4 +425,9 @@ function handleBreadcrumbClick(item) {
window.location.href = router.resolve(item.route).href
}
}

function stripHtml(value) {
if (!value || typeof value !== "string") return ""
return value.replace(/<[^>]*>?/gm, "").trim()
}
</script>
Loading
Loading