-
Notifications
You must be signed in to change notification settings - Fork 141
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
fix!: solara.Meta elements insert empty span into DOM #625
base: master
Are you sure you want to change the base?
fix!: solara.Meta elements insert empty span into DOM #625
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @iisakkirotko and the rest of your teammates on Graphite |
Why is this a problem? Why is the span even needed? |
@mariobuikhuizen This is what causes the extra spacing at the top of notebook-based tutorials with Granted this happens because these
and
|
This would be a better title for the commit/PR.
Strange, I never noticed an error with an empty template. |
Ok, I checked it, I write empty templates like this: <template>
</template> This produces no errors. Doing it like this: <template></template> Does produce the second error you mentioned. |
e500a9b
to
103e0af
Compare
bc6dd96
to
432d4b6
Compare
It's a bug in ipyvue that empty template tags on the same line don't work. |
Putting the templates on two different lines fixes both errors. What are your thoughts on the PR? In principle this is a breaking change on the UI side (if someone was unknowingly relying on this for spacing, for example), but I think we can sell it as a fix. I could rename it as suggested, but then the scope of the change seems smaller than it might be. |
432d4b6
to
ffbdeff
Compare
Having an empty template on one line or no tempate tag at all would incorrectly fallback to the deprecated template format where template tags were ommited. See: spacetelescope/jdaviz#2668 and widgetti/solara#625
Having an empty template on one line or no tempate tag at all would incorrectly fallback to the deprecated template format where template tags were ommited. See: spacetelescope/jdaviz#2668 and widgetti/solara#625
86646f5
to
df2fd66
Compare
The insertion of
<span></span>
into the dom is what causes strange extra spacing at the top of notebook-based tutorials with solara.Meta tags currently:Fixes #626
TODO: