Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#45010] replaced label bindings

Eric Schuberta06b11c09d88
diff --git a/frontend/src/app/spot/components/selector-field/stories/SelectorField.example.html b/frontend/src/app/spot/components/selector-field/stories/SelectorField.example.html
index 8f165030cbb..591c6726f31 100644
--- a/frontend/src/app/spot/components/selector-field/stories/SelectorField.example.html
+++ b/frontend/src/app/spot/components/selector-field/stories/SelectorField.example.html
@@ -1,20 +1,20 @@
<div class="spot-container">
- <spot-selector-field [label]="'not checked'">
+ <spot-selector-field label="not checked">
<spot-checkbox slot="input"></spot-checkbox>
</spot-selector-field>
- <spot-selector-field [label]="'checked'">
+ <spot-selector-field label="checked">
<spot-checkbox
slot="input"
[checked]="true"
></spot-checkbox>
</spot-selector-field>
- <spot-selector-field [label]="'mixed'">
+ <spot-selector-field label="mixed">
<spot-checkbox
slot="input"
[(ngModel)]="mixed"
></spot-checkbox>
</spot-selector-field>
- <spot-selector-field [label]="'disabled and checked'">
+ <spot-selector-field label="disabled and checked">
<spot-checkbox
slot="input"
[disabled]="true"
@@ -24,19 +24,19 @@
<hr class="spot-divider">
- <spot-selector-field [label]="'switched off'">
+ <spot-selector-field label="switched off">
<spot-switch
slot="input"
[checked]="false"
></spot-switch>
</spot-selector-field>
- <spot-selector-field [label]="'switched on'">
+ <spot-selector-field label="switched on">
<spot-switch
slot="input"
[checked]="true"
></spot-switch>
</spot-selector-field>
- <spot-selector-field [label]="'switched off and disabled'">
+ <spot-selector-field label="switched off and disabled">
<spot-switch
slot="input"
[checked]="false"
diff --git a/frontend/src/app/spot/components/selector-field/stories/SelectorFieldFontWeight.example.html b/frontend/src/app/spot/components/selector-field/stories/SelectorFieldFontWeight.example.html
index ce8d572af2c..5193e43700b 100644
--- a/frontend/src/app/spot/components/selector-field/stories/SelectorFieldFontWeight.example.html
+++ b/frontend/src/app/spot/components/selector-field/stories/SelectorFieldFontWeight.example.html
@@ -1,12 +1,12 @@
<div class="spot-container">
<spot-selector-field
- [label]="'Bold Label'"
+ label="Bold Label"
[labelWeight]="'bold'"
>
<spot-checkbox slot="input"></spot-checkbox>
</spot-selector-field>
- <spot-selector-field [label]="'Regular Label'">
+ <spot-selector-field label="Regular Label">
<spot-checkbox slot="input"></spot-checkbox>
</spot-selector-field>
</div>