Skip to content
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

Wrap rendered drawables in an outer div so it can be replaced or removed fully #437

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

noahgibbs
Copy link
Collaborator

Description

Adding the div makes it clear where the element ends, and lets us cleanly remove it. Right now the HTML ID may correspond to the outer div so you can easily replace it. But some elements (e.g. alerts) have never worked that way, and there's no requirement that any drawable render like that.

  • Don't do this for TextDrawables - they're tiny
  • Make Link and Span be TextDrawables, which they should have been anyway
  • Default needs_update to just updating the single drawable, not the whole tree
  • This is related to Calzini and Updates #419, but doesn't fully fix it

Checklist

  • Run tests locally

…ved fully.

Don't do this for TextDrawables - they're tiny.
Make Link and Span be TextDrawables, which they should have been anyway.
Default needs_update to just updating the single drawable, not the whole tree.
This is related to #419, but doesn't fully fix it.
Copy link
Collaborator

@Schwad Schwad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, once you're happy with CI!

@noahgibbs noahgibbs merged commit 9a134cc into main Nov 3, 2023
1 check passed
@noahgibbs noahgibbs deleted the html_wrapper_divs branch November 9, 2023 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants