File tree Expand file tree Collapse file tree 5 files changed +38
-30
lines changed
Payment/view/frontend/web/template/payment
Shipping/view/frontend/web/template/checkout/shipping
Ui/view/frontend/web/templates/form/element/helper
design/frontend/Magento/blank/Magento_Checkout/web/css/source/module/checkout Expand file tree Collapse file tree 5 files changed +38
-30
lines changed Original file line number Diff line number Diff line change 104
104
enable: isActive($parents),
105
105
value: creditCardVerificationNumber "/>
106
106
< div class ="field-tooltip toggle ">
107
- < span class ="field-tooltip-action action-cvv " data-bind ="attr: {title: $t('What is this?')} ">
107
+ < span class ="field-tooltip-action action-cvv "
108
+ data-toggle ="dropdown "
109
+ data-bind ="attr: {title: $t('What is this?')}, mageInit: {'dropdown':{'activeClass': '_active'}} ">
108
110
< span > <!-- ko text: $t('What is this?')--> <!-- /ko --> </ span >
109
111
</ span >
110
- < div class ="field-tooltip-content " data-bind ="html: getCvvImageHtml() "> </ div >
112
+ < div class ="field-tooltip-content "
113
+ data-target ="dropdown "
114
+ data-bind ="html: getCvvImageHtml() "> </ div >
111
115
</ div >
112
116
</ div >
113
117
</ div >
Original file line number Diff line number Diff line change 5
5
*/
6
6
-->
7
7
< div class ="shipping-policy-block field-tooltip "
8
- data-block ="shipping-policy-block "
9
8
data-bind ="visible: config.isEnabled ">
10
- < span class ="field-tooltip-action " data-trigger ="shipping-tooltip-action ">
9
+ < span class ="field-tooltip-action "
10
+ data-toggle ="dropdown "
11
+ data-bind ="mageInit: {'dropdown':{'activeClass': '_active'}} ">
11
12
<!-- ko text: $t('See our Shipping Policy') --> <!-- /ko -->
12
13
</ span >
13
14
< div class ="field-tooltip-content "
14
- data-bind ="mageInit: {
15
- 'dropdownDialog':{
16
- 'appendTo': '[data-block=shipping-policy-block]',
17
- 'triggerTarget': '[data-trigger=shipping-tooltip-action]',
18
- 'closeOnMouseLeave': false,
19
- 'triggerClass': '_active',
20
- 'buttons': []
21
- }} ">
15
+ data-target ="dropdown ">
22
16
< span data-bind ="html: config.shippingPolicyContent "> </ span >
23
17
</ div >
24
18
</ div >
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
-->
7
- < div class ="field-tooltip toggle " data-block =" field-tooltip-block " >
7
+ < div class ="field-tooltip toggle ">
8
8
< a class ="field-tooltip-action action-help "
9
9
target ="_blank "
10
- data-trigger =" field-tooltip-action "
11
- data-bind ="attr: {href: tooltip.link} "> </ a >
10
+ data-toggle =" dropdown "
11
+ data-bind ="attr: {href: tooltip.link}, mageInit: {'dropdown':{'activeClass': '_active'}} "> </ a >
12
12
< div class ="field-tooltip-content "
13
- data-bind ="mageInit: {
14
- 'dropdownDialog':{
15
- 'appendTo': '[data-block=field-tooltip-block]',
16
- 'triggerTarget': '[data-trigger=field-tooltip-action]',
17
- 'closeOnMouseLeave': false,
18
- 'triggerClass': '_active',
19
- 'buttons': []
20
- }} ">
13
+ data-target ="dropdown ">
21
14
<!-- ko text: tooltip.description --> <!-- /ko -->
22
15
</ div >
23
16
</ div >
Original file line number Diff line number Diff line change 41
41
right : 0 ;
42
42
top : 1px ;
43
43
44
+ & :hover {
45
+ cursor : pointer ;
46
+ }
47
+
48
+ & ._active {
49
+ .css (z-index , @checkout-tooltip__hover__z-index );
50
+
51
+ .field-tooltip-content {
52
+ display : block ;
53
+ }
54
+ .field-tooltip-action {
55
+ & :before {
56
+ .css (color , @checkout-tooltip-icon__hover__color );
57
+ }
58
+ }
59
+ }
60
+
44
61
.field-tooltip-action {
45
62
.icon-font (
46
- @checkout-tooltip-icon__content ,
47
- @_icon-font-size : @checkout-tooltip-icon__font-size ,
48
- @_icon-font-text-hide : true ,
49
- @_icon-font-color : @checkout-tooltip-icon__color ,
50
- @_icon-font-color-hover : @checkout-tooltip-icon__hover__color ,
51
- @_icon-font-color-active : false
63
+ @checkout-tooltip-icon__content ,
64
+ @_icon-font-size : @checkout-tooltip-icon__font-size ,
65
+ @_icon-font-text-hide : true ,
66
+ @_icon-font-color : @checkout-tooltip-icon__color ,
67
+ @_icon-font-color-hover : @checkout-tooltip-icon__hover__color ,
68
+ @_icon-font-color-active : false
52
69
);
53
70
54
71
& ._active {
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ define([
108
108
if ( options . autoclose === true ) {
109
109
self . reset ( { elems : actionElem . not ( elem ) } ) ;
110
110
}
111
- self [ elem . hasClass ( 'active' ) ? 'closeDropdown' : 'openDropdown' ] ( elem ) ;
111
+ self [ elem . hasClass ( options . activeClass ) ? 'closeDropdown' : 'openDropdown' ] ( elem ) ;
112
112
113
113
return false ;
114
114
} ) ;
You can’t perform that action at this time.
0 commit comments