Skip to content

Commit 99817bd

Browse files
author
Oleg Zinoviev
committed
MAGETWO-39999: Hints behave not user-friendly on Storefront
- Updates after merge
1 parent f1f786f commit 99817bd

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

app/code/Magento/Braintree/view/frontend/web/template/payment/braintree-paypal-form.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
<button data-role="review-save"
3535
type="submit"
3636
data-bind="
37-
attr: {title: $t('Place order')},
37+
attr: {title: $t('Place Order')},
3838
enable: (getCode() == isChecked()),
3939
click: placeOrder,
4040
css: {disabled: !isPlaceOrderActionAllowed()}
4141
"
4242
class="action primary checkout"
4343
disabled>
44-
<span data-bind="text: $t('Place order')"></span>
44+
<span data-bind="text: $t('Place Order')"></span>
4545
</button>
4646
</div>
4747
</div>

app/code/Magento/Braintree/view/frontend/web/template/payment/cc-form.html

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,26 @@
151151
<span><!-- ko text: $t('Card Verification Number')--><!-- /ko --></span>
152152
</label>
153153
<div class="control">
154-
<input type="number" class="input-text cvv" name="payment[cc_cid]" value=""
155-
data-bind="attr: {id: getCode() + '_cc_cid', title: $t('Card Verification Number'), 'data-container': getCode() + '-cc-cvv', 'data-validate': JSON.stringify({'required-number':true, 'validate-cc-cvn':'#' + getCode() + '_cc_type'})},
156-
enable: true,
157-
value: creditCardVerificationNumber"/>
158-
<div class="note">
159-
<a href="#" class="action cvv" data-bind="attr: {title: $t('What is this?')}, mageInit:{'tooltip': {'content': getCvvImageHtml()}}"><span><!-- ko text: $t('What is this?')--><!-- /ko --></span></a>
154+
<input type="number"
155+
class="input-text cvv"
156+
name="payment[cc_cid]"
157+
value=""
158+
data-bind="attr: {id: getCode() + '_cc_cid',
159+
title: $t('Card Verification Number'),
160+
'data-container': getCode() + '-cc-cvv',
161+
'data-validate': JSON.stringify({'required-number':true, 'validate-cc-cvn':'#' + getCode() + '_cc_type'})},
162+
enable: true,
163+
value: creditCardVerificationNumber" />
164+
<div class="field-tooltip toggle">
165+
<span class="field-tooltip-action action-cvv"
166+
tabindex="0"
167+
data-toggle="dropdown"
168+
data-bind="attr: {title: $t('What is this?')}, mageInit: {'dropdown':{'activeClass': '_active'}}">
169+
<span><!-- ko text: $t('What is this?')--><!-- /ko --></span>
170+
</span>
171+
<div class="field-tooltip-content"
172+
data-target="dropdown"
173+
data-bind="html: getCvvImageHtml()"></div>
160174
</div>
161175
</div>
162176
</div>

0 commit comments

Comments
 (0)