Skip to content

Commit

Permalink
Feature/977 HTML structure (#1040)
Browse files Browse the repository at this point in the history
* Implement html structure and fix tests

* Shorten logic in component

* Remove unwanted styling that broke every dialog

* Add styling to headings and fix obvious mistakes

* Fix font size in banner and alignment of stretch star

* Fix e2e test

* Remove files that do not belong to my PR
  • Loading branch information
ManuelMoeri authored and kcinay055679 committed Nov 15, 2024
1 parent 5a4b752 commit 1d1b705
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</div>
</div>

<section class="okr-form-row mx-0">
<div class="okr-form-row mx-0">
<button
mat-button
color="primary"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div
<span
class="okr-form-row bg-inherit flex-nowrap align-items-center mx-0"
*ngIf="checkIn.confidence || checkIn.confidence === 0"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h3>Action Plan</h3>
<div *ngIf="action.isChecked">
<div class="action-list-checked-item break-word ms-4">
<img src="../../../assets/icons/checkmark.svg" alt="checkbox" class="action-checkbox me-1" />
<span class="" [ngStyle]="{ 'text-decoration': 'line-through' }">{{ action.action }}</span>
<p [ngStyle]="{ 'text-decoration': 'line-through' }">{{ action.action }}</p>
</div>
</div>
<div *ngIf="!action.isChecked">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
>
<div class="row mx-1">
<section class="d-flex mb-3 mt-3 justify-content-between pe-0">
<section class="d-flex gap-2 align-items-start fit-content objective-title">
<div class="d-flex gap-2 align-items-start fit-content objective-title">
<img
(click)="$event.stopPropagation()"
[attr.data-testId]="'objective-state'"
Expand All @@ -19,7 +19,7 @@
matTooltipPosition="above"
/>
<h2 class="title fit-content">{{ objective.title }}</h2>
</section>
</div>
<button
#menuButton
*ngIf="isWritable"
Expand All @@ -33,7 +33,7 @@ <h2 class="title fit-content">{{ objective.title }}</h2>
</button>
</section>

<div class="d-flex px-3 gap-3 flex-column">
<section class="d-flex px-3 gap-3 flex-column">
<app-keyresult
*ngFor="let keyResult of objective.keyResults; trackBy: trackByFn"
class="border-0 p-0"
Expand All @@ -42,7 +42,7 @@ <h2 class="title fit-content">{{ objective.title }}</h2>
[keyResult]="keyResult"
[attr.data-testId]="'keyresult'"
></app-keyresult>
</div>
</section>

<section class="p-0 py-2 m-0">
<button
Expand Down
10 changes: 10 additions & 0 deletions frontend/src/style/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ body.okr {

p {
margin: 0;
font-size: 14px;
}

span {
font-size: 14px;
}

.quarter-filter-text span {
font-size: 16px;
}

a {
Expand Down Expand Up @@ -387,4 +396,5 @@ table.okr-table {
}

.okr-form-label-input-container {
@extend .py-1;
}

0 comments on commit 1d1b705

Please sign in to comment.