Skip to content

ui.tags.head() not being hoisted into <head> #14

@jcheng5

Description

@jcheng5

Instead, the <style> or whatever appears inside a custom tag, and they don't seem to work there.

Partial example:

sc.page_dashboard(
    ui.tags.head(
            ui.tags.style(
        """
        body > shiny-dashboard > shiny-tab:nth-child(1) > shiny-grid > shiny-card:nth-child(2) {
            --card-bg: red;
            border: 1px solid blue !important;
        }
        """
    ),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions