Skip to content

Commit fef27fe

Browse files
committed
buttons
1 parent fb4c3da commit fef27fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gradio/components/deep_link_button.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def __init__(
3535
copied_value: str = "Link Copied!",
3636
*,
3737
inputs: Component | Sequence[Component] | set[Component] | None = None,
38-
variant: Literal["primary", "secondary"] = "primary",
39-
size: Literal["sm", "md", "lg"] = "lg",
38+
variant: Literal["primary", "secondary"] = "secondary",
39+
size: Literal["sm", "md", "lg"] = "md",
4040
icon: str | Path | None = utils.get_icon_path("link.svg"),
4141
link: str | None = None,
4242
visible: bool = True,

gradio/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def render_title_description(self) -> None:
571571
Markdown(self.description)
572572

573573
def render_flag_btns(self) -> list[Button]:
574-
return [Button(label) for label, _ in self.flagging_options]
574+
return [Button(label, size="md") for label, _ in self.flagging_options]
575575

576576
def render_input_column(
577577
self,

0 commit comments

Comments
 (0)