@@ -39,7 +39,7 @@ def render_panel(
3939 ariaDescribedBy = "dialog-description" ,
4040 )
4141
42- info_text = Typography (id = "info_text" )
42+ info_text = Typography (id = "info_text" , color = "grey" )
4343
4444 return Box (
4545 style = {
@@ -63,17 +63,17 @@ def dialog_on_open(ctx: Context, button) -> bool:
6363@panel .callback (
6464 Input ("okay_button" , "clicked" ),
6565 Output ("dialog" , "open" ),
66- Output ("info_text" , "children " ),
66+ Output ("info_text" , "text " ),
6767)
68- def dialog_on_close (ctx : Context , button ) -> tuple [bool , list [ str ] ]:
69- return False , [ "Okay button was clicked!" ]
68+ def dialog_on_close (ctx : Context , button ) -> tuple [bool , str ]:
69+ return False , "Okay button was clicked!"
7070
7171
7272# noinspection PyUnusedLocal
7373@panel .callback (
7474 Input ("not_okay_button" , "clicked" ),
7575 Output ("dialog" , "open" ),
76- Output ("info_text" , "children " ),
76+ Output ("info_text" , "text " ),
7777)
78- def dialog_on_close (ctx : Context , button ) -> tuple [bool , list [ str ] ]:
79- return False , [ "Not okay button was clicked!" ]
78+ def dialog_on_close (ctx : Context , button ) -> tuple [bool , str ]:
79+ return False , "Not okay button was clicked!"
0 commit comments