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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add correct class for cancel buttons in spot modals and take care that the cancel button is hidden at the same point as the mobile version of it is displayed. Otherwise we would have a state where no cancel button was visible. Further the padding was removed from the action bar itself to avoid it being shown when there is no button inside shown any more (see #47994)
Henriette Darge73e83b795bf7
diff --git a/app/views/onboarding/_configuration_modal.html.erb b/app/views/onboarding/_configuration_modal.html.erbindex fbe044dbd23..e38fba6222a 100644--- a/app/views/onboarding/_configuration_modal.html.erb+++ b/app/views/onboarding/_configuration_modal.html.erb@@ -47,7 +47,7 @@ See COPYRIGHT and LICENSE files for more details.<div class="onboarding--footer spot-action-bar"><div class="spot-action-bar--right"><button- class="button button_no-margin spot-action-bar--action"+ class="button button_no-margin spot-action-bar--action spot-modal--cancel-button"dynamic-content-modal-close-buttontitle=<%= t(:button_close) %>><%= t(:button_close) %></button>@@ -56,4 +56,3 @@ See COPYRIGHT and LICENSE files for more details.</div><% end %></div>-diff --git a/app/views/onboarding/_onboarding_video_modal.html.erb b/app/views/onboarding/_onboarding_video_modal.html.erbindex 9a1979a42c1..5dc7cbd56d9 100644--- a/app/views/onboarding/_onboarding_video_modal.html.erb+++ b/app/views/onboarding/_onboarding_video_modal.html.erb@@ -46,7 +46,7 @@ See COPYRIGHT and LICENSE files for more details.<div class="onboarding--footer spot-action-bar"><div class="spot-action-bar--right"><button- class="button button_no-margin spot-action-bar--action"+ class="button button_no-margin spot-action-bar--action spot-modal--cancel-button"dynamic-content-modal-close-buttontitle=<%= t(:button_close) %>><%= t(:button_close) %></button>diff --git a/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.html b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.htmlindex bbda2c50a54..dd2fdc51afe 100644--- a/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.html+++ b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.html@@ -38,7 +38,7 @@<div *ngIf="!context.status || context.cancelled; else mailSubmitted"class="spot-action-bar--right"><button- class="button button_no-margin spot-action-bar--action"+ class="button button_no-margin spot-action-bar--action spot-modal--cancel-button"data-qa-selector="confirmation-modal--cancel"(click)="closeModal($event)"[textContent]="text.button_cancel"diff --git a/frontend/src/app/spot/styles/sass/components/action-bar.sass b/frontend/src/app/spot/styles/sass/components/action-bar.sassindex 4af13c58ce5..d6a6fed5ab3 100644--- a/frontend/src/app/spot/styles/sass/components/action-bar.sass+++ b/frontend/src/app/spot/styles/sass/components/action-bar.sass@@ -1,7 +1,6 @@.spot-action-bardisplay: gridgrid-template-columns: 1fr- padding: 0 $spot-spacing-1 $spot-spacing-0_75 0background-color: $spot-color-basic-gray-6a.button@@ -20,7 +19,7 @@margin-top: -$spot-spacing-0_25> .spot-action-bar--action- margin: $spot-spacing-1 0 0 $spot-spacing-1+ margin: $spot-spacing-1 $spot-spacing-1 $spot-spacing-0-75 $spot-spacing-1@media #{$spot-mq-action-bar-change}grid-template-columns: 1fr autodiff --git a/frontend/src/app/spot/styles/sass/components/modal-overlay.sass b/frontend/src/app/spot/styles/sass/components/modal-overlay.sassindex 05501ca9cba..ccaee58d232 100644--- a/frontend/src/app/spot/styles/sass/components/modal-overlay.sass+++ b/frontend/src/app/spot/styles/sass/components/modal-overlay.sass@@ -31,7 +31,7 @@display: blockmargin: 1rem- @media (min-width: 680px)+ @media #{$spot-mq-drop-modal-in-context}display: none@media (max-height: 480px)diff --git a/lookbook/previews/modal_preview/danger_zone.html.erb b/lookbook/previews/modal_preview/danger_zone.html.erbindex 671da13faa0..69a14c91245 100644--- a/lookbook/previews/modal_preview/danger_zone.html.erb+++ b/lookbook/previews/modal_preview/danger_zone.html.erb@@ -12,7 +12,7 @@</div><div class="spot-action-bar"><div class="spot-action-bar--right">- <button name="button" type="button" class="button button_no-margin spot-action-bar--action">Cancel</button>+ <button name="button" type="button" class="button button_no-margin spot-action-bar--action spot-modal--cancel-button">Cancel</button><button name="button" type="submit" class="button button_no-margin -danger spot-action-bar--action">Continue</button></div></div>