diff --git a/src/layouts/component-test/component-test.vue b/src/layouts/component-test/component-test.vue index 2320f68e4..46c9d52c7 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 84c139916..7358073df 100644 --- a/src/ux-components/alert/alert.vue +++ b/src/ux-components/alert/alert.vue @@ -1,10 +1,10 @@ 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 }} +