J
J
Jokerrs5672022-01-13 17:58:47
css
Jokerrs567, 2022-01-13 17:58:47

How to show tooltip for fields on woocommerce?

The styles that bother me are written in html through style:

<span class="description" id="billing_discord-description" aria-hidden="true" style="display: inline;">Наш оператор свяжется в течение 10 минут</span>

By default display: none, on click display: inline. But for some reason, the description is displayed crookedly from the box.
61e03c76e3869075123894.png
To fix this, you need to replace display: inlinewith display: -webkit-inline-box. This can be done through an identifier, but then the whole logic of work is strewed, because default is now displayed display: -webkit-inline-boxinstead of display: none.
I came to the conclusion that it makes no sense to fight with styles here, because. it is not possible to set the location where style is output in html. (if not right, then correct)
The most logical way to change the logic of work to the correct one is to change aria-hidden="true" to aria-hidden="false" by default. The only question is how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fsgdoterr, 2022-01-13
@fsgdoterr

js is our everything

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question