From 16c5bc062cf77cb327af25b2d6200c8013015b17 Mon Sep 17 00:00:00 2001 From: sboursen-scinote Date: Tue, 28 Feb 2023 11:16:03 +0100 Subject: [PATCH] Revert "Update the style of the unlink protocol modal [SCI-7909]" Updating styles is not part of the current ticket. This reverts commit 0f9dcda99bde58f833b7230ef0f40714dc69ee9c. --- .../javascripts/my_modules/protocols.js | 2 +- .../my_modules/protocols/index.scss | 51 ------------------- 2 files changed, 1 insertion(+), 52 deletions(-) diff --git a/app/assets/javascripts/my_modules/protocols.js b/app/assets/javascripts/my_modules/protocols.js index d667caaeb..bd04b990f 100644 --- a/app/assets/javascripts/my_modules/protocols.js +++ b/app/assets/javascripts/my_modules/protocols.js @@ -100,7 +100,7 @@ function initLinkUpdate() { $("[data-action='unlink'], [data-action='revert'], [data-action='update-parent'], [data-action='update-self']") .on('ajax:success', function(e, data) { const modalBodyTemplate = (message, warning) => `

${message}

-

${warning || ''}

`; +

${warning || ''}

`; const { title, message, diff --git a/app/assets/stylesheets/my_modules/protocols/index.scss b/app/assets/stylesheets/my_modules/protocols/index.scss index defcb7ba7..f6a4e2079 100644 --- a/app/assets/stylesheets/my_modules/protocols/index.scss +++ b/app/assets/stylesheets/my_modules/protocols/index.scss @@ -6,8 +6,6 @@ @import "constants"; @import "mixins"; -$modal-spacing: 16px; - .content-pane.my-modules-protocols-index { background-color: $color-alto; margin: 0 -16px; @@ -682,52 +680,3 @@ $modal-spacing: 16px; display: inline-block; margin-left: 4px; } - -.confirm-link-update-modal { - .modal-content { - .modal-header { - border-bottom-color: transparent; - padding: $modal-spacing; - position: relative; - - &::after { - border-bottom: 1px solid $color-concrete; - bottom: 0; - left: $modal-spacing; - position: absolute; - width: calc(100% - 2* #{$modal-spacing}); - } - - .close { - color: $color-volcano; - } - } - - .modal-body { - padding: $modal-spacing; - - .message { - margin-bottom: $modal-spacing; - } - - .warning { - font-weight: bold; - margin: 0; - } - } - - .modal-footer { - border-top-color: transparent; - padding: $modal-spacing; - position: relative; - - &::after { - border-top: 1px solid $color-concrete; - left: $modal-spacing; - position: absolute; - top: 0; - width: calc(100% - 2* #{$modal-spacing}); - } - } - } -}