|
56 | 56 | </template> |
57 | 57 | </div> |
58 | 58 |
|
59 | | - <!-- Submit button: shows only a forward-arrow icon; the aria-label |
60 | | - cycles through four instructional states as the sequence is built. --> |
61 | | - <SubmitBurstAnimation |
62 | | - v-if="burstVisible" |
63 | | - class="submit-burst" |
64 | | - /> |
65 | | - <button |
66 | | - type="submit" |
67 | | - class="submit-button" |
68 | | - :class="[ |
69 | | - $computedClass({ |
70 | | - ':hover': submitEnabled |
71 | | - ? { |
72 | | - backgroundColor: $themeTokens.primaryDark, |
73 | | - } |
74 | | - : {}, |
75 | | - }), |
76 | | - { pulsing: submitPulsing }, |
77 | | - { bouncing: arrowBouncing }, |
78 | | - ]" |
79 | | - data-testid="submit-button" |
80 | | - :aria-disabled="!submitEnabled ? 'true' : undefined" |
81 | | - :aria-label="submitButtonAriaLabel" |
82 | | - :style="submitButtonStyle" |
83 | | - > |
84 | | - <KIcon |
85 | | - data-testid="submit-icon" |
86 | | - class="submit-icon" |
87 | | - icon="forward" |
88 | | - :color="submitEnabled ? $themeTokens.textInverted : $themePalette.grey.v_300" |
| 59 | + <div class="submit-container"> |
| 60 | + <!-- Submit button: shows only a forward-arrow icon; the aria-label |
| 61 | + cycles through four instructional states as the sequence is built. --> |
| 62 | + <SubmitBurstAnimation |
| 63 | + v-if="burstVisible" |
| 64 | + class="submit-burst" |
89 | 65 | /> |
90 | | - </button> |
| 66 | + <button |
| 67 | + type="submit" |
| 68 | + class="submit-button" |
| 69 | + :class="[ |
| 70 | + $computedClass({ |
| 71 | + ':hover': submitEnabled |
| 72 | + ? { |
| 73 | + backgroundColor: $themeTokens.primaryDark, |
| 74 | + } |
| 75 | + : {}, |
| 76 | + }), |
| 77 | + { pulsing: submitPulsing }, |
| 78 | + { bouncing: arrowBouncing }, |
| 79 | + ]" |
| 80 | + data-testid="submit-button" |
| 81 | + :aria-disabled="!submitEnabled ? 'true' : undefined" |
| 82 | + :aria-label="submitButtonAriaLabel" |
| 83 | + :style="submitButtonStyle" |
| 84 | + > |
| 85 | + <KIcon |
| 86 | + data-testid="submit-icon" |
| 87 | + class="submit-icon" |
| 88 | + icon="forward" |
| 89 | + :color="submitEnabled ? $themeTokens.textInverted : $themePalette.grey.v_300" |
| 90 | + /> |
| 91 | + </button> |
| 92 | + </div> |
91 | 93 | </div> |
92 | 94 | </form> |
93 | 95 |
|
|
476 | 478 | border-radius: 16px; |
477 | 479 | } |
478 | 480 |
|
| 481 | + .submit-container { |
| 482 | + position: relative; |
| 483 | + // display: inline-block; |
| 484 | + } |
| 485 | +
|
479 | 486 | .submit-button { |
480 | | - display: flex; |
| 487 | + // display: flex; |
481 | 488 | align-items: center; |
482 | 489 | justify-content: center; |
| 490 | + width: 100%; |
| 491 | + height: 100%; |
483 | 492 | padding: 0; |
484 | 493 | border: 0; |
485 | 494 | border-radius: 8px; |
|
0 commit comments