File tree Expand file tree Collapse file tree 4 files changed +29
-36
lines changed
Shipping/view/frontend/web/template/checkout/shipping
Ui/view/frontend/web/templates/form/element/helper
blank/Magento_Checkout/web/css/source/module/checkout Expand file tree Collapse file tree 4 files changed +29
-36
lines changed 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 ="shipping-policy-block field-tooltip " data-bind ="visible: config.isEnabled ">
8
- < span class ="field-tooltip-action ">
7
+ < div class ="shipping-policy-block field-tooltip "
8
+ data-block ="shipping-policy-block "
9
+ data-bind ="visible: config.isEnabled ">
10
+ < span class ="field-tooltip-action " data-trigger ="shipping-tooltip-action ">
9
11
<!-- ko text: $t('See our Shipping Policy') --> <!-- /ko -->
10
12
</ span >
11
- < div class ="field-tooltip-content ">
13
+ < 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
+ }} ">
12
22
< span data-bind ="html: config.shippingPolicyContent "> </ span >
13
23
</ div >
14
24
</ 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 ">
8
- < a class ="field-tooltip-action action-help " target ="_blank " data-bind ="attr: {href: tooltip.link} ">
9
- </ a >
10
- < div class ="field-tooltip-content ">
7
+ < div class ="field-tooltip toggle " data-block ="field-tooltip-block ">
8
+ < a class ="field-tooltip-action action-help "
9
+ target ="_blank "
10
+ data-trigger ="field-tooltip-action "
11
+ data-bind ="attr: {href: tooltip.link} "> </ a >
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
+ }} ">
11
21
<!-- ko text: tooltip.description --> <!-- /ko -->
12
22
</ div >
13
23
</ div >
Original file line number Diff line number Diff line change 41
41
right : 0 ;
42
42
top : 1px ;
43
43
44
- & :hover {
45
- .css (z-index , @checkout-tooltip__hover__z-index );
46
- cursor : pointer ;
47
- .field-tooltip-content {
48
- display : block ;
49
- }
50
- .field-tooltip-action {
51
- & :before {
52
- .css (color , @checkout-tooltip-icon__hover__color );
53
- }
54
- }
55
- }
56
-
57
44
.field-tooltip-action {
58
45
.icon-font (
59
46
@checkout-tooltip-icon__content ,
63
50
@_icon-font-color-hover : @checkout-tooltip-icon__hover__color ,
64
51
@_icon-font-color-active : false
65
52
);
66
- & :focus {
53
+
54
+ & ._active {
67
55
& :before {
68
56
.css (color , @checkout-tooltip-icon__hover__color );
69
57
}
70
- + .field-tooltip-content {
71
- display : block ;
72
- }
73
58
}
74
59
}
75
60
Original file line number Diff line number Diff line change 1434
1434
input {
1435
1435
.css (margin-right , @indent__s );
1436
1436
width : calc (~ " 100% - (@{checkout-tooltip-icon__font-size} + @{indent__s} + @{indent__xs} )" );
1437
- & :focus {
1438
- + .field-tooltip {
1439
- .field-tooltip-action {
1440
- & :before {
1441
- .css (color , @checkout-tooltip-icon__hover__color );
1442
- }
1443
- }
1444
- .field-tooltip-content {
1445
- display : block ;
1446
- }
1447
- }
1448
- }
1449
1437
}
1450
1438
}
1451
1439
You can’t perform that action at this time.
0 commit comments