-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
open/close tooltip controller #1501
Conversation
Thank you for the PR. .tooltip:not([data-tip]):hover:before,
.tooltip:not([data-tip]):hover:after {
visibility: hidden;
opacity: 0;
} https://svelte.dev/repl/9f8ceaff8bf041068027373441972e1c?version=3.55.0 |
Great, that works too 😁 I'll make a new commit with your suggestion, thanks 👍 |
Hey @saadeghi I better understood what caused the What I understood was the following: At first glance we seem to think it's a string/word, but CSS treats it as a quoted boolean. The Prettier adds quotes around the values. So I decided to check that he was right and that it complies with the CSS specification and how the value is handled. I created some variations around boolean values. If you can take a look, please: With my original proposal we can use the Svelte syntax like this: Rather than: What do you think? |
Hey @saadeghi, I was in doubt about which style was the best, but I realized some problems with my original proposal. I'm ready to make a new commit with your suggestion. |
Thank you |
This PR is very useful to help with form validation.
It allows having a condition of not opening it if the value of
data-tip
isfalse
. Please see this example I created to demonstrate its use.https://svelte.dev/repl/79a08e408d9e464aad574b46fa9e1feb?version=3.55.0