Skip to content

Commit

Permalink
todo: remove rx.input.root and hardcoded background color (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
masenf authored Jul 29, 2024
1 parent 022e3cb commit adb21b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion todo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
*.py[cod]
.web
__pycache__/
reflex.db
assets/external/
reflex.db
10 changes: 4 additions & 6 deletions todo/todo/todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,10 @@ def new_item() -> rx.Component:
"""
return rx.form(
rx.hstack(
rx.input.root(
rx.input(
name="new_item",
placeholder="Add a todo...",
bg="white",
),
rx.input(
name="new_item",
placeholder="Add a todo...",
bg=rx.color("gray", 2),
width="100%",
),
rx.button("Add"),
Expand Down

0 comments on commit adb21b4

Please sign in to comment.