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

Issue with reflex.dev documentation: hover styling example #1162

Open
tartansandal opened this issue Jan 8, 2025 · 1 comment
Open

Issue with reflex.dev documentation: hover styling example #1162

tartansandal opened this issue Jan 8, 2025 · 1 comment

Comments

@tartansandal
Copy link

Path: /docs/getting-started/dashboard-tutorial

The code to set hover styling for each user row seems to be broken

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",
    )

should be

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),
        _hover: {"bg": rx.color("gray", 3),
        align="center",
    )
Copy link

linear bot commented Jan 8, 2025

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

No branches or pull requests

1 participant