-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] TW UI uses "tc-reveal" class so exessively, that it has no value for styling anymore #8709
Comments
Blindly removing it will "break" anyone's wiki that is using tc-reveal.
|
We did already remove a lot of them when we changed from reveal-widget to |
Absence of evidence is not evidence of absence. If you (we) remove it, it MUST be presented as a potentially breaking change. |
I did a search of a couple of my wikis. Tobi Beer's appear plugin uses it. My code uses it in two places. I can fix those easily enough -- and thanks to bundler, I can propagate it too ;) I fear there are more plugins out there that might use it, and other folks that may have long-forgotten CSS relying on it. Either way, "it has no value for styling anymore" is not a true statement. |
Hi @pmario sadly I think this is indeed something that would be problematic to change at this point. Perhaps the best thing we could do is to hasten the deprecation of the reveal widget. I think the current obstacle is that it is the only way to make an animated appearance/disappearance. |
I also have used
which eliminates unwanted top/bottom margins for the first For this particular use-case, I could replace
However, this example illustrates that completely removing As far as TWCore performance is concerned, I suggest just continuing to replace the use of |
Actually I wonder the difference between the reveal widget and conditional shortcut (which generates a list widget), and which one has a better performance. |
I think here we should be more concerned with making the core simpler for people to understand than marginal performance differences. The reveal widget should really be called the "animate" widget because that is the only remaining use case for it. For all other cases the conditional shortcut syntax is more readable and flexible. |
Even without animation, the "retain" feature of the reveal widget can be used as an optional parameter in the |
Describe the bug
Talking about "cruft".
The core UI uses
tc-reveal
so excessively, that it has absolutely no value for styling anymore. The only thing it does is wasting CPU cycles needed for parsing.Expected behavior
We should remove it.
tc-reveal
is not used for styling in any core theme CSS tiddlers. -- (I think for a reason)To Reproduce
See screenshot below
Screenshots
TiddlyWiki Configuration
v5.3.5
Additional context
No response
The text was updated successfully, but these errors were encountered: