CASH-1416: add wrapper element and styles
This commit is contained in:
parent
c1813cc024
commit
1153d4c722
1 changed files with 15 additions and 10 deletions
|
|
@ -26,16 +26,18 @@
|
|||
</div>
|
||||
</div>
|
||||
<template v-for="globalAlert in globalAlertMessages" :key="globalAlert.id">
|
||||
<transition name="fade" mode="out-in">
|
||||
<alert
|
||||
v-if="globalAlert.displayAlert"
|
||||
class="rounded-0 w-100 border-0 shadow-sm"
|
||||
cmsWidgetName="GlobalAlert"
|
||||
:manualHeadline="globalAlert.messageHeadline"
|
||||
:manualCopy="globalAlert.messageCopy"
|
||||
:alertClass="globalAlert.type"
|
||||
v-bind:isDismissible="globalAlert.isDismissible" />
|
||||
</transition>
|
||||
<div class="container d-flex global-alert-wrapper">
|
||||
<transition name="fade" mode="out-in">
|
||||
<alert
|
||||
v-if="globalAlert.displayAlert"
|
||||
class="rounded-0 w-100 border-0 shadow-sm"
|
||||
cmsWidgetName="GlobalAlert"
|
||||
:manualHeadline="globalAlert.messageHeadline"
|
||||
:manualCopy="globalAlert.messageCopy"
|
||||
:alertClass="globalAlert.type"
|
||||
v-bind:isDismissible="globalAlert.isDismissible" />
|
||||
</transition>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
|
|
@ -257,4 +259,7 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
.global-alert-wrapper .alert {
|
||||
margin: 0 0 1.5rem;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in a new issue