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

feature: add class option to Html component #554

Merged
merged 3 commits into from
Feb 21, 2023

Conversation

polarmutex
Copy link
Contributor

allows you to set class on the Html component.

do not like line 95, but is was done to fix a compile error, not sure how to resolve it

Copy link
Collaborator

@gbj gbj left a comment

Choose a reason for hiding this comment

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

Thanks! I added a couple comments, should be pretty straightforward.

meta/src/html.rs Outdated Show resolved Hide resolved
meta/src/html.rs Outdated Show resolved Hide resolved
@gbj
Copy link
Collaborator

gbj commented Feb 20, 2023

Oh could you also please run cargo fmt before you push again? The CI runs cargo fmt --check first thing.

@gbj
Copy link
Collaborator

gbj commented Feb 21, 2023

Thanks — the APIs for the HTML bit are slightly finicky. Your version would render something like <html lang="Some(TextProp)" dir="None" class="None"> I took the liberty of fixing it up! I think this should be good to go once it passes tests. Thanks for the contribution.

@gbj gbj merged commit f7d0eea into leptos-rs:main Feb 21, 2023
gbj pushed a commit that referenced this pull request Mar 21, 2023
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.

None yet

2 participants