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

Use bold labels for spot label

Oliver Günther7a731de849fb
diff --git a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html
index 075f45caec8..89ae05660a3 100644
--- a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html
+++ b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html
@@ -24,95 +24,78 @@
</div>
<div class="op-datepicker-modal--dates-container">
- <div class="op-form-field op-datepicker-modal--date-form"
- data-qa-selector="datepicker-start-date"
+ <spot-form-field
+ [label]="text.startDate"
+ data-qa-selector="datepicker-start-date"
>
- <label class="form--label"
- [textContent]="text.startDate">
- </label>
- <div class="form--field-container">
- <div class="form--text-field-container op-datepicker-modal--date-container">
- <spot-text-field
- name="startDate"
- data-qa-selector="op-datepicker-modal--start-date-field"
- class="op-datepicker-modal--date-field"
- [attr.data-qa-highlighted]="showFieldAsActive('start') || undefined"
- [ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('start')}"
- [ngModel]="dates.start"
- (ngModelChange)="startDateChanged$.next($event)"
- [disabled]="!isSchedulable"
- [showClearButton]="currentlyActivatedDateField === 'start'"
- (focusin)="setCurrentActivatedField('start')"
- ></spot-text-field>
- </div>
- </div>
- <div class="form--field-extra-actions">
- <button
- type="button"
- class="spot-link"
- [ngClass]="{ 'op-datepicker-modal--hidden-link': !showTodayLink() }"
- (click)="setToday('start')"
- [textContent]="text.today">
- </button>
- </div>
- </div>
- <div class="op-form-field op-datepicker-modal--date-form"
- data-qa-selector="datepicker-end-date"
+ <spot-text-field
+ slot="input"
+ name="startDate"
+ data-qa-selector="op-datepicker-modal--start-date-field"
+ class="op-datepicker-modal--date-field"
+ [attr.data-qa-highlighted]="showFieldAsActive('start') || undefined"
+ [ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('start')}"
+ [ngModel]="dates.start"
+ (ngModelChange)="startDateChanged$.next($event)"
+ [disabled]="!isSchedulable"
+ [showClearButton]="currentlyActivatedDateField === 'start'"
+ (focusin)="setCurrentActivatedField('start')"
+ ></spot-text-field>
+ <button
+ slot="help-text"
+ type="button"
+ class="spot-link"
+ [ngClass]="{ 'op-datepicker-modal--hidden-link': !showTodayLink() }"
+ (click)="setToday('start')"
+ [textContent]="text.today">
+ </button>
+ </spot-form-field>
+ <spot-form-field
+ [label]="text.startDate"
+ data-qa-selector="datepicker-end-date"
>
- <label class="form--label"
- [textContent]="text.endDate">
- </label>
- <div class="form--field-container">
- <div class="form--text-field-container op-datepicker-modal--date-container">
- <spot-text-field
- name="endDate"
- data-qa-selector="op-datepicker-modal--end-date-field"
- class="op-datepicker-modal--date-field"
- [attr.data-qa-highlighted]=" showFieldAsActive('end') || undefined"
- [ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('end')}"
- [ngModel]="dates.end"
- (ngModelChange)="endDateChanged$.next($event)"
- [disabled]="!isSchedulable"
- [showClearButton]="currentlyActivatedDateField === 'end'"
- (focusin)="setCurrentActivatedField('end')"
- ></spot-text-field>
- </div>
- </div>
- <div class="form--field-extra-actions">
- <button
- type="button"
- class="spot-link"
- [ngClass]="{ 'op-datepicker-modal--hidden-link': !showTodayLink() }"
- (click)="setToday('end')"
- [textContent]="text.today">
- </button>
- </div>
- </div>
- <div class="op-form-field op-datepicker-modal--date-form"
- data-qa-selector="datepicker-duration"
+ <spot-text-field
+ slot="input"
+ name="endDate"
+ data-qa-selector="op-datepicker-modal--end-date-field"
+ class="op-datepicker-modal--date-field"
+ [attr.data-qa-highlighted]="showFieldAsActive('end') || undefined"
+ [ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('end')}"
+ [ngModel]="dates.end"
+ (ngModelChange)="endDateChanged$.next($event)"
+ [disabled]="!isSchedulable"
+ [showClearButton]="currentlyActivatedDateField === 'end'"
+ (focusin)="setCurrentActivatedField('end')"
+ ></spot-text-field>
+ <button
+ slot="help-text"
+ type="button"
+ class="spot-link"
+ [ngClass]="{ 'op-datepicker-modal--hidden-link': !showTodayLink() }"
+ (click)="setToday('end')"
+ [textContent]="text.today">
+ </button>
+ </spot-form-field>
+ <spot-form-field
+ [label]="text.duration"
+ data-qa-selector="datepicker-duration"
>
- <label class="form--label"
- [textContent]="text.duration">
- </label>
- <div class="form--field-container">
- <div class="form--text-field-container op-datepicker-modal--date-container">
- <spot-text-field
- #durationField
- name="duration"
- data-qa-selector="op-datepicker-modal--duration-field"
- class="op-datepicker-modal--date-field"
- [attr.data-qa-highlighted]=" showFieldAsActive('duration') || undefined"
- [ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('duration')}"
- [ngModel]="durationFocused ? duration : displayedDuration"
- [showClearButton]="durationFocused"
- (ngModelChange)="durationChanges$.next($event)"
- [disabled]="!isSchedulable"
- (focusin)="handleDurationFocusIn()"
- (focusout)="handleDurationFocusOut()"
- ></spot-text-field>
- </div>
- </div>
- </div>
+ <spot-text-field
+ #durationField
+ slot="input"
+ name="duration"
+ data-qa-selector="op-datepicker-modal--duration-field"
+ class="op-datepicker-modal--date-field"
+ [attr.data-qa-highlighted]=" showFieldAsActive('duration') || undefined"
+ [ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('duration')}"
+ [ngModel]="durationFocused ? duration : displayedDuration"
+ [showClearButton]="durationFocused"
+ (ngModelChange)="durationChanges$.next($event)"
+ [disabled]="!isSchedulable"
+ (focusin)="handleDurationFocusIn()"
+ (focusout)="handleDurationFocusOut()"
+ ></spot-text-field>
+ </spot-form-field>
</div>
<input id="flatpickr-input"
diff --git a/frontend/src/app/spot/styles/sass/components/form-field.sass b/frontend/src/app/spot/styles/sass/components/form-field.sass
index 9e188ee45c0..39ef892ee2e 100644
--- a/frontend/src/app/spot/styles/sass/components/form-field.sass
+++ b/frontend/src/app/spot/styles/sass/components/form-field.sass
@@ -19,7 +19,7 @@
align-items: center
margin-bottom: $spot-spacing-0_25
- @include spot-body-small
+ @include spot-body-small($weight: bold)
color: $spot-color-basic-gray-1
&-indicator