diff --git a/src/layouts/component-test/component-test.vue b/src/layouts/component-test/component-test.vue
index b25a26b8f..9daf987af 100644
--- a/src/layouts/component-test/component-test.vue
+++ b/src/layouts/component-test/component-test.vue
@@ -37,6 +37,9 @@
@@ -44,6 +47,9 @@
diff --git a/src/styles/common-button-styles.scss b/src/styles/common-button-styles.scss
index 889b3a3f5..323ad5552 100644
--- a/src/styles/common-button-styles.scss
+++ b/src/styles/common-button-styles.scss
@@ -16,23 +16,8 @@
&:focus-visible { // Keyboard focus for accessibility
outline: none;
box-shadow: 0 0 0 3px, 0 0 0 5.5px $blue-700;
- }
- &.button-loader {
- padding: 0 40px 0 12px;
- &:after {
- content: url(../../assets/img/icons/button-spinner-white.svg);
- position: absolute;
- right: 14px;
- width: 16px;
- height: 16px;
- margin-left: 12px;
- animation: rotation 1s infinite linear;
- @keyframes rotation {
- 100% {
- transform:rotate(360deg);
- }
- }
- }
+ color: $white;
+ @include blue-gradient;
}
&:disabled {
background: $gray-100 !important;
@@ -59,39 +44,8 @@
&:focus-visible { // Keyboard focus for accessibility
outline: none;
box-shadow: 0 0 0 3px $white, 0 0 0 5.5px $blue-700;
- }
- &.button-loader {
- padding: 0 40px 0 12px;
- &:after {
- content: url(../../assets/img/icons/button-spinner-blue.svg);
- position: absolute;
- right: 14px;
- width: 16px;
- height: 16px;
- margin-left: 12px;
- animation: rotation 1s infinite linear;
- @keyframes rotation {
- 100% {
- transform:rotate(360deg);
- }
- }
- }
- &:focus:hover {
- &:after {
- content: url(../../assets/img/icons/button-spinner-white.svg);
- position: absolute;
- right: 14px;
- width: 16px;
- height: 16px;
- margin-left: 12px;
- animation: rotation 1s infinite linear;
- @keyframes rotation {
- 100% {
- transform:rotate(360deg);
- }
- }
- }
- }
+ color: $white;
+ @include blue-gradient;
}
&:disabled {
background: transparent;
@@ -130,22 +84,5 @@
color: $danger;
}
}
- &.button-loader {
- padding: 0 40px 0 12px;
- &:after {
- content: url(../../assets/img/icons/button-spinner-blue.svg);
- position: absolute;
- right: 14px;
- width: 16px;
- height: 16px;
- margin-left: 12px;
- animation: rotation 1s infinite linear;
- @keyframes rotation {
- 100% {
- transform:rotate(360deg);
- }
- }
- }
- }
}
}
diff --git a/src/ux-components/alert/alert.vue b/src/ux-components/alert/alert.vue
index 043fae922..7358073df 100644
--- a/src/ux-components/alert/alert.vue
+++ b/src/ux-components/alert/alert.vue
@@ -39,10 +39,14 @@ export default {
.btn-close {
background: none;
opacity: 1;
+ width: .75rem;
+ height: .75rem;
}
&.alert-dismissible {
button {
display: flex;
+ top: 2px;
+ right: 2px;
}
}
&.alert-info {
diff --git a/src/ux-components/button-primary/button-primary.vue b/src/ux-components/button-primary/button-primary.vue
index 1f5738cb8..f250ea55e 100644
--- a/src/ux-components/button-primary/button-primary.vue
+++ b/src/ux-components/button-primary/button-primary.vue
@@ -3,29 +3,41 @@
:disabled="isDisabled"
:aria-disabled="isDisabled"
class="btn btn-primary d-flex align-items-center"
- v-on:click="showLoader()"
- v-bind:class="[this.isLoading ? 'button-loader' : 'not-loading']"
- >
+ @click='displayComponent'
+ >
{{ this.buttonText }}
+
diff --git a/src/ux-components/button-secondary/button-secondary.vue b/src/ux-components/button-secondary/button-secondary.vue
index 3840922d4..679b44ba9 100644
--- a/src/ux-components/button-secondary/button-secondary.vue
+++ b/src/ux-components/button-secondary/button-secondary.vue
@@ -3,29 +3,41 @@
:disabled="isDisabled"
:aria-disabled="isDisabled"
class="btn btn-secondary d-flex align-items-center"
- v-on:click="showLoader()"
- v-bind:class="[this.isLoading ? 'button-loader' : 'not-loading']"
- >
+ @click='displayComponent'
+ >
{{ this.buttonText }}
+