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

Render <turbo-stream-source> as display: none #1129

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seanpdoyle
Copy link
Contributor

Since the <turbo-cable-stream-source> is a Custom Element, it has a default style: property of display: inline. As a visible element, it participates in the page's layout.

This commit changes the element to always be display: none so that it no longer participates in the layout.

Since the `<turbo-cable-stream-source>` is a Custom Element, it has a
default `style:` property of `display: inline`. As a visible element, it
participates in the page's layout.

This commit changes the element to always be `display: none` so that it
no longer participates in the layout.
Copy link

@stevepolitodesign stevepolitodesign left a comment

Choose a reason for hiding this comment

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

Would hidden be an appropriate alternative?

@brunoprietog
Copy link
Collaborator

Looks si mpler!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants