Skip to content

Commit 7fee6b9

Browse files
committed
feat: button background hover styles while loading
1 parent e771e13 commit 7fee6b9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

components/button/cta-with-loader.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ const props = defineProps({
6262

6363
<style lang="scss" scoped>
6464
// ///////////////////////////////////////////////////////////////////// General
65-
.with-loader.theme__primary.loading {
65+
.with-loader.theme__primary {
6666
&:hover {
6767
cursor: default;
68-
:deep(.detail) {
68+
:deep(.inner-content.loading) {
6969
.fill-path {
7070
opacity: 0;
7171
fill: none;

components/button/cta.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
<ZeroButton
33
v-slot="{ loading }"
44
v-bind="props"
5-
:class="['button-x', `theme__${props.theme}`, variant, loading]">
6-
<div class="inner-content">
7-
5+
:class="['button-x', `theme__${props.theme}`, variant]">
6+
<div :class="['inner-content', { loading: loading }]">
87
<div v-if="theme === 'primary'" :class="['detail-wrapper', variant]">
98
<svg
109
width="400"

components/signup-card.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
</div>
9191

9292
<ButtonCtaWithLoader
93-
:class="['submit-button', { submitted: formSubmitted }]"
93+
:class="['submit-button', { submitted: !loading && formSubmitted }]"
9494
theme="primary"
9595
loader="signup-card-form"
9696
@clicked="submitForm">
@@ -199,6 +199,7 @@ const selectOption = (setSelected, closePanel, option, field) => {
199199
* @method submitForm
200200
*/
201201
const submitForm = async () => {
202+
if (formSubmitted.value) { return }
202203
if (firstName.value && lastName.value && email.value && organization.value && country.value) {
203204
const body = {
204205
records: [

0 commit comments

Comments
 (0)