Merge pull request #2796 from Safelite/feature/CASH-1427

Pull success alert outside of containing block.
This commit is contained in:
chloeherdsafelite 2025-08-26 13:48:43 -04:00 committed by GitHub
commit 6d4c75ad0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,18 +1,15 @@
<template>
<div class="save-progress-modal-question" :class="isProgressSaved ? 'progress-saved' : ''">
<div
class="save-progress-modal-question"
:class="isProgressSaved ? 'progress-saved' : ''"
v-if="!isProgressSaved">
<buttonMain
type="button"
v-if="!isProgressSaved"
:buttonText="buttonText"
loaderColor="white"
:suppressLoader="true"
class="open-save-progress-button"
@click-event="openModal" />
<alert
class="my-4"
v-else
cmsWidgetName="SaveProgressModalAlertWidget"
alertClass="alert-success" />
<modal
:ref="modalName"
:headerText="modalHeaderText"
@ -30,6 +27,11 @@
</template>
</modal>
</div>
<alert
class="my-4 save-your-progress-alert"
v-else
cmsWidgetName="SaveProgressModalAlertWidget"
alertClass="alert-success" />
</template>
<script>
@ -239,7 +241,9 @@ export default {
}
}
}
}
.save-your-progress-alert {
.alert {
border-radius: $border-radius-lg;
border: 1px solid $green;
@ -250,7 +254,6 @@ export default {
font-weight: 600;
font-size: 1rem;
color: $black;
text-align: left;
padding-left: 1.5rem;
&::before {
position: absolute;