[FIX] web: tooltip question mark using wrong class

This commit replaces the `btn-link` with `text-info` since it is not a
button and the `btn-link` class should be used in pair with the `btn`
class.

Moreover, the question mark button in form view supposed to trigger the
`tooltip` box is difficult to reach since the triggering area behaves
weirdly on chromium OSX.

This is fixed in a separate commit:
d44d5e8ddea5e7e548cfe8fd74fc8e964ff088c6

This commit has been rebased to target 16.0 in accordance to the other
commit fixing the behavior of the tooltip.

task-3099734

closes odoo/odoo#115217

X-original-commit: eb3d6cc056dae842b03016c3c5084ba37242e386
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Mathieu (mano)
2023-03-14 17:03:38 +01:00
parent 59edbb7894
commit 36c85200e9
@@ -3,7 +3,7 @@
<t t-name="web.FormLabel" owl="1">
<label class="o_form_label" t-att-for="props.id" t-att-class="className" >
<t t-esc="props.string"/><sup class="btn-link p-1" t-if="hasTooltip" t-att="{'data-tooltip-template': 'web.FieldTooltip', 'data-tooltip-info': tooltipInfo, 'data-tooltip-touch-tap-to-show': 'true'}">?</sup>
<t t-esc="props.string"/><sup class="text-info p-1" t-if="hasTooltip" t-att="{'data-tooltip-template': 'web.FieldTooltip', 'data-tooltip-info': tooltipInfo, 'data-tooltip-touch-tap-to-show': 'true'}">?</sup>
</label>
</t>