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

head::Style does not add styles inside the head tag #3029

Open
DioxusGrow opened this issue Oct 3, 2024 · 1 comment · May be fixed by #3031
Open

head::Style does not add styles inside the head tag #3029

DioxusGrow opened this issue Oct 3, 2024 · 1 comment · May be fixed by #3031
Labels
bug Something isn't working html Related to the html crate

Comments

@DioxusGrow
Copy link

DioxusGrow commented Oct 3, 2024

head::Style does not add styles inside the head tag during dx serve

/// # Example
/// rust, no_run
/// # use dioxus::prelude::*;
/// fn RedBackground() -> Element {
///     rsx! {
///         // You can use the style component to render a style tag into the head of the page
///         // This style tag will set the background color of the page to red
///         Style {
///             r#"
///                 body {{
///                     background-color: red;
///                 }}
///             "#
///         }
///     }
/// }
/// 

image

Environment:
Dioxus version: dioxus 0.6.0-alpha.2 (d0c9b67) from github 03/10/24
Rust version: rustc 1.81.0 (eeb90cda1 2024-09-04)
OS info: Win11
App platform: web

@TN19Nworking
Copy link

same problem for me, a posted an example in discord https://discord.com/channels/899851952891002890/1291354543602532472

@ealmloff ealmloff linked a pull request Oct 3, 2024 that will close this issue
@ealmloff ealmloff added bug Something isn't working html Related to the html crate labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working html Related to the html crate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants