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

Extend head components with global attributes #2888

Merged
merged 12 commits into from
Oct 1, 2024

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Aug 26, 2024

This PR extends the head components with each component's source element and global attributes. It also allows custom attributes to be added to any component that extends an element with the Comp { "custom-attr": "value" } syntax

It also changes head rendering to render Style { href: "/123" } as a Link element in the head because it has no body and fixes the warning when a script is used with a src but without a body

Fixes #2875
Fixes #2981
Stacked on #2886

@ealmloff ealmloff added breaking This is a breaking change html Related to the html crate labels Aug 26, 2024
@ealmloff ealmloff merged commit 95976d9 into DioxusLabs:main Oct 1, 2024
17 checks passed
@ealmloff ealmloff deleted the extends-head branch October 1, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking This is a breaking change html Related to the html crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Script ignores src attribute Ability to add attributes to the Style tag in head
2 participants