Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Remove letters from survey

Robin Dekkers7141187b9434
diff --git a/ui/component/or-survey/src/index.ts b/ui/component/or-survey/src/index.ts
index a35ba6cfe..8300432dc 100644
--- a/ui/component/or-survey/src/index.ts
+++ b/ui/component/or-survey/src/index.ts
@@ -163,15 +163,6 @@ class OrSurvey extends LitElement {
`}
`}
<label class="flex-grow" @click="${(e:Event) => this.onAnswer(e, answer)}" for="${question.id}_${index}">
-
- ${this.getType(question.type) === 'singleSelect' ? html`
- <span class="answer-icon">${this.getAlphabetLabel(index)}</span>
- ` : ``}
-
- ${this.getType(question.type) === 'multiSelect' ? html`
- <span class="answer-icon">${this.getAlphabetLabel(index)}</span>
- ` : ``}
-
${answer.value}
</label>
</div>
@@ -251,11 +242,6 @@ class OrSurvey extends LitElement {
}
}
- getAlphabetLabel(index:number) {
- let alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
- return alphabet[index];
- }
-
getInputType(type:string|undefined) {
if (type) {
if (type.includes('singleSelect') || type.includes('rating')) {
diff --git a/ui/component/or-survey/src/style.ts b/ui/component/or-survey/src/style.ts
index e453d4580..ae32d851a 100644
--- a/ui/component/or-survey/src/style.ts
+++ b/ui/component/or-survey/src/style.ts
@@ -345,7 +345,6 @@ export const surveyLayoutStyle =html`
}
button.previous .icon {
- background-color: rgba(255, 255, 255, 0.5);
width: 2.5rem;
fill: var(--internal-or-survey-color-button-color);
color: var(--internal-or-survey-color-button-color);
@@ -358,7 +357,6 @@ export const surveyLayoutStyle =html`
}
button.next .icon {
- background-color: rgba(255, 255, 255, 0.5);
width: 2.5rem;
fill: var(--internal-or-survey-color-button-color);
color: var(--internal-or-survey-color-button-color);