Skip to content

Commit

Permalink
feature #39: select controls for ui-vue
Browse files Browse the repository at this point in the history
  • Loading branch information
sadiqkhoja committed Apr 25, 2024
1 parent 966656f commit de78b44
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ui-vue/src/components/FormQuestion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ const isSelectNode = (n: AnyLeafNode) : n is SelectNode => n.nodeType === 'selec

<UnsupportedControl v-else :question="question" />
</div>
</template>
</template>
2 changes: 1 addition & 1 deletion packages/ui-vue/src/components/controls/SelectControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ const value = computed(() => {
<label :for="question.nodeId + '_' + option.value">{{ option.label?.asString }}</label>
</div>
</template>
</template>
</template>
11 changes: 11 additions & 0 deletions packages/ui-vue/src/themes/2024-light/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -251,5 +251,16 @@ $primary50: #d8ecf5;
cursor: not-allowed;
}
}

.select1,
.selectN {
display: flex;
align-items: center;

label {
margin-left: 0.5rem;
cursor: pointer;
}
}
}
}

0 comments on commit de78b44

Please sign in to comment.