CASH-498 - Code review updates
This commit is contained in:
parent
5b8e1d55c8
commit
1cb59b1adc
2 changed files with 9 additions and 15 deletions
|
|
@ -56,8 +56,7 @@
|
||||||
ref="buttonMain"
|
ref="buttonMain"
|
||||||
:buttonText="DonationAddButtonCopy"
|
:buttonText="DonationAddButtonCopy"
|
||||||
loaderColor="blue"
|
loaderColor="blue"
|
||||||
customSecondary="true"
|
class="w-100 mb-2 custom-secondary"
|
||||||
class="w-100 mb-2"
|
|
||||||
@click-event="handleDonationAction" />
|
@click-event="handleDonationAction" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -292,5 +291,12 @@ export default {
|
||||||
left: -0.25rem;
|
left: -0.25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.custom-secondary {
|
||||||
|
&:hover {
|
||||||
|
color: $blue;
|
||||||
|
background: transparent;
|
||||||
|
border: 1px solid $blue;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,7 @@
|
||||||
:aria-disabled="isDisabled"
|
:aria-disabled="isDisabled"
|
||||||
class="btn d-flex align-items-center justify-content-center py-3 px-4 delay"
|
class="btn d-flex align-items-center justify-content-center py-3 px-4 delay"
|
||||||
:class="[
|
:class="[
|
||||||
customSecondary
|
isPrimary ? 'btn-primary' : 'btn-secondary',
|
||||||
? 'btn-secondary custom-secondary'
|
|
||||||
: isPrimary
|
|
||||||
? 'btn-primary'
|
|
||||||
: 'btn-secondary',
|
|
||||||
isFloat ? 'float-end' : '',
|
isFloat ? 'float-end' : '',
|
||||||
isLoaderDisplayed && !suppressLoader ? 'has-loader' : '',
|
isLoaderDisplayed && !suppressLoader ? 'has-loader' : '',
|
||||||
]"
|
]"
|
||||||
|
|
@ -33,7 +29,6 @@ export default {
|
||||||
loaderPosition: String,
|
loaderPosition: String,
|
||||||
isFloat: Boolean,
|
isFloat: Boolean,
|
||||||
suppressLoader: Boolean,
|
suppressLoader: Boolean,
|
||||||
customSecondary: Boolean, // New property to check if it comes from donationBlock
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -161,13 +156,6 @@ export default {
|
||||||
transition: background 0s 0s ease-in-out;
|
transition: background 0s 0s ease-in-out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.custom-secondary {
|
|
||||||
&:hover {
|
|
||||||
color: $blue !important;
|
|
||||||
background: transparent !important;
|
|
||||||
border: 1px solid $blue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&.btn-success {
|
&.btn-success {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: $green-100;
|
background: $green-100;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue