[FIX] web: stat_button: display none on hover
A 'display: none' rule on hover has been added for boolean buttons, on each 'o_stat_button o_stat_text' that hasn't classname o_hover. This applies on every stat button that isn't a boolean button, so their content is always hidden on hover.
This commit is contained in:
committed by
Raphael Collet
parent
447dd53de5
commit
c1cc4b830b
@@ -1438,11 +1438,11 @@
|
||||
|
||||
<t t-name="BooleanButton">
|
||||
<t t-if="widget.get_value()">
|
||||
<span class="o_stat_text text-success"><t t-esc="widget.string_true"/></span>
|
||||
<span class="o_stat_text o_not_hover text-success"><t t-esc="widget.string_true"/></span>
|
||||
<span class="o_stat_text o_hover text-danger"><t t-esc="widget.hover_true"/></span>
|
||||
</t>
|
||||
<t t-if="!widget.get_value()">
|
||||
<span class="o_stat_text text-danger"><t t-esc="widget.string_false"/></span>
|
||||
<span class="o_stat_text o_not_hover text-danger"><t t-esc="widget.string_false"/></span>
|
||||
<span class="o_stat_text o_hover text-success"><t t-esc="widget.hover_false"/></span>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user