File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
frontend/web/templates/form/element/helper Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ define([
131
131
uid : uid ,
132
132
noticeId : 'notice-' + uid ,
133
133
errorId : 'error-' + uid ,
134
+ tooltipId : 'tooltip-' + uid ,
134
135
inputName : utils . serializeName ( name . join ( '.' ) ) ,
135
136
valueUpdate : valueUpdate
136
137
} ) ;
Original file line number Diff line number Diff line change 13
13
data-bind ="attr: {href: tooltip.link}, mageInit: {'dropdown':{'activeClass': '_active'}} "> </ a >
14
14
<!-- /ko -->
15
15
16
- < span id =" tooltip- label " class =" label "> <!-- ko i18n: 'Tooltip' --> <!-- /ko --> </ span >
16
+ < span class =" label " data-bind =" attr: { id: $data.tooltipId ? $data.tooltipId : 'tooltip- label' } "> <!-- ko i18n: 'Tooltip' --> <!-- /ko --> </ span >
17
17
<!-- ko if: (!tooltip.link)-->
18
18
< span
19
- id ="tooltip "
20
19
class ="field-tooltip-action action-help "
21
20
tabindex ="0 "
22
21
data-toggle ="dropdown "
23
- data-bind ="mageInit: {'dropdown':{'activeClass': '_active', 'parent': '.field-tooltip.toggle'}} "
24
- aria-labelledby ="tooltip-label "
22
+ data-bind ="
23
+ mageInit: {'dropdown':{'activeClass': '_active', 'parent': '.field-tooltip.toggle'}},
24
+ attr: { 'aria-labelledby': $data.tooltipId ? $data.tooltipId : 'tooltip-label' }
25
+ "
25
26
>
26
27
</ span >
27
28
<!-- /ko -->
You can’t perform that action at this time.
0 commit comments