Skip to content

Commit 1a7e3e8

Browse files
fix: remove radio button and put drag-icon in edit mode
Signed-off-by: paul bochtler <65470117+datapumpernickel@users.noreply.github.com>
1 parent c16d3a7 commit 1a7e3e8

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/components/Questions/AnswerInput.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<component
99
:is="pseudoIcon"
1010
v-if="!isDropdown"
11+
:size="24"
1112
class="question__item__pseudoInput" />
1213
<input
1314
ref="input"
@@ -145,6 +146,11 @@ export default {
145146
default: false,
146147
},
147148
149+
isRanking: {
150+
type: Boolean,
151+
default: false,
152+
},
153+
148154
maxIndex: {
149155
type: Number,
150156
required: true,
@@ -256,6 +262,10 @@ export default {
256262
return IconTableRow
257263
}
258264
265+
if (this.isRanking) {
266+
return IconDragIndicator
267+
}
268+
259269
return this.isUnique ? IconRadioboxBlank : IconCheckboxBlankOutline
260270
},
261271
},
@@ -538,8 +548,7 @@ export default {
538548
height: 100%;
539549
}
540550
541-
.option__drag-handle,
542-
.drag-indicator-icon {
551+
.option__drag-handle {
543552
color: var(--color-text-maxcontrast);
544553
cursor: grab;
545554
margin-block: auto;

src/components/Questions/QuestionRanking.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
:aria-label="t('forms', 'Move option actions')"
8181
class="ranking-item__drag-handle"
8282
variant="tertiary-no-background">
83-
8483
<template #icon>
8584
<IconDragIndicator :size="20" />
8685
</template>
@@ -153,6 +152,7 @@
153152
:isUnique="true"
154153
:maxIndex="options.length - 1"
155154
:maxOptionLength="maxStringLengths.optionText"
155+
:isRanking="true"
156156
optionType="choice"
157157
@createAnswer="onCreateAnswer"
158158
@update:answer="updateAnswer"

0 commit comments

Comments
 (0)