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

[#43842] qa fixes for modals

Eric Schubert40fe0680d944
diff --git a/frontend/src/app/features/boards/new-board-modal/new-board-modal.html b/frontend/src/app/features/boards/new-board-modal/new-board-modal.html
index 52e423ab910..8091f21aae8 100644
--- a/frontend/src/app/features/boards/new-board-modal/new-board-modal.html
+++ b/frontend/src/app/features/boards/new-board-modal/new-board-modal.html
@@ -19,6 +19,7 @@
</p>
<p
*ngIf="!eeShowBanners"
+ class="spot-body-small"
[textContent]="text.select_board_type"></p>
<section class="new-board--section">
<tile-view
diff --git a/frontend/src/app/features/boards/tile-view/tile-view.component.html b/frontend/src/app/features/boards/tile-view/tile-view.component.html
index b62bdd6b305..233155c1651 100644
--- a/frontend/src/app/features/boards/tile-view/tile-view.component.html
+++ b/frontend/src/app/features/boards/tile-view/tile-view.component.html
@@ -1,7 +1,7 @@
<div class="op-tile-block">
<button
*ngFor="let tile of tiles"
- class="op-tile-block--tile button"
+ class="op-tile-block--tile button button_no-margin"
data-qa-selector="op-tile-block"
type="button"
[disabled]="tile.disabled || disable"
@@ -16,4 +16,4 @@
<p class="op-tile-block--description" [textContent]="tile.description"></p>
</div>
</button>
-</div>
\ No newline at end of file
+</div>
diff --git a/frontend/src/app/features/boards/tile-view/tile-view.component.sass b/frontend/src/app/features/boards/tile-view/tile-view.component.sass
index 023227496f1..568c7e33643 100644
--- a/frontend/src/app/features/boards/tile-view/tile-view.component.sass
+++ b/frontend/src/app/features/boards/tile-view/tile-view.component.sass
@@ -3,8 +3,7 @@
display: grid
grid-template-rows: repeat(minmax(200px, auto))
grid-template-columns: auto auto
- grid-column-gap: 10px
- grid-row-gap: 10px
+ grid-gap: 1rem
&--tile
border-radius: 10px
@@ -16,7 +15,6 @@
justify-items: left
background: #f7fafc
min-height: 150px
- margin: auto
&:disabled
background: #fafafa
diff --git a/frontend/src/app/spot/styles/sass/common/container-overrides.sass b/frontend/src/app/spot/styles/sass/common/container-overrides.sass
index eafed0f0cf5..f2546614db0 100644
--- a/frontend/src/app/spot/styles/sass/common/container-overrides.sass
+++ b/frontend/src/app/spot/styles/sass/common/container-overrides.sass
@@ -1,6 +1,10 @@
.spot-container
- &.spot-modal--body > *
- margin: $spot-spacing-1 $spot-spacing-1 0
+ // This style must apply for anything inside a spot-modal, that is not yet a spot element.
+ // The override can get deleted once every modal contains nothing but spot elements, which are styled
+ // in `./container.sass`
+ &.spot-modal--body
+ > *:not(.spot-list, .spot-breadcrumbs, .spot-header-big, .spot-header-small, .spot-subheader-big, .spot-subheader-small, .spot-subheader-extra-small, .spot-body-big, .spot-body-small, .spot-caption, .spot-divider, .spot-text-field)
+ margin: $spot-spacing-1 $spot-spacing-1 0
- &:last-child
- margin-bottom: $spot-spacing-1
+ &:last-child
+ margin-bottom: $spot-spacing-1
diff --git a/frontend/src/app/spot/styles/sass/components/modal.sass b/frontend/src/app/spot/styles/sass/components/modal.sass
index badb093a040..dd4ba5540ec 100644
--- a/frontend/src/app/spot/styles/sass/components/modal.sass
+++ b/frontend/src/app/spot/styles/sass/components/modal.sass
@@ -45,6 +45,7 @@
width: $spot-spacing-1-5
height: $spot-spacing-1-5
margin-right: $spot-spacing-0-5
+ font-size: 1rem
&_highlight
background-color: var(--header-bg-color)