Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/app/news/+foreach-dark-mode.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix dark-mode contrast in the foreach documentation's nested-list and todo examples.
9 changes: 6 additions & 3 deletions docs/library/dynamic-rendering/foreach.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def display_row(row: rx.Var[list[str]]):
row,
lambda item: rx.box(
item,
border="1px solid black",
border=f"1px solid {rx.color('gray', 7)}",
padding="0.5em",
),
),
Expand Down Expand Up @@ -144,7 +144,9 @@ def todo_example():
return rx.vstack(
rx.heading("Todos", as_="h2"),
rx.input(
on_blur=ListState.set_new_item, placeholder="Add a todo...", bg="white"
on_blur=ListState.set_new_item,
placeholder="Add a todo...",
bg=rx.color("gray", 2),
),
rx.button("Add", on_click=ListState.add_item),
rx.divider(),
Expand All @@ -154,7 +156,8 @@ def todo_example():
get_item,
),
),
bg="#ededed",
bg=rx.color("gray", 3),
color=rx.color("gray", 12),
Comment thread
carlosabadia marked this conversation as resolved.
padding="1em",
border_radius="0.5em",
shadow="lg",
Expand Down
Loading