Skip to content

fix typo error on Docs: Dashboard Tutorial, extra "\" #4931

@PIBSAS

Description

@PIBSAS

Typo error extra \:
style=\{"_hover"

need to be:
style={"_hover"

On:

def show_user(user: User):
    """Show a user in a table row."""
    return rx.table.row(
        rx.table.cell(user.name),
        rx.table.cell(user.email),
        rx.table.cell(user.gender),
        style=\{"_hover": 
            {"bg": rx.color("gray", 3)}
        },
        align="center",
    )

is:

def show_user(user: User):
    """Show a user in a table row."""
    return rx.table.row(
        rx.table.cell(user.name),
        rx.table.cell(user.email),
        rx.table.cell(user.gender),
        style={"_hover":
            {"bg": rx.color("gray", 3)}
        },
        align="center",
    )

The same in Conclusion:

Finally let's make some final styling updates to our app. We will add some hover styling to the table rows and center the table inside the show_user with style=\{"_hover": {"bg": rx.color("gray", 3)}}, align="center".

is:
Finally let's make some final styling updates to our app. We will add some hover styling to the table rows and center the table inside the show_user with style={"_hover": {"bg": rx.color("gray", 3)}}, align="center".

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions