Skip to content

Commit ae1ea07

Browse files
Set hidden to try_examples_button classes
1 parent f747261 commit ae1ea07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jupyterlite_sphinx/jupyterlite_sphinx.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,14 +468,14 @@ def run(self):
468468

469469
# Button with the onclick event to swap embedded notebook back to examples.
470470
go_back_button_html = (
471-
'<button class="try_examples_button" '
471+
'<button class="try_examples_button hidden" '
472472
f"onclick=\"window.tryExamplesHideIframe('{examples_div_id}',"
473473
f"'{iframe_parent_div_id}')\">"
474474
"Go Back</button>"
475475
)
476476

477477
full_screen_button_html = (
478-
'<button class="try_examples_button" '
478+
'<button class="try_examples_button hidden" '
479479
f"onclick=\"window.openInNewTab('{examples_div_id}',"
480480
f"'{iframe_parent_div_id}')\">"
481481
"Open In Tab</button>"
@@ -484,7 +484,7 @@ def run(self):
484484
# Button with the onclick event to swap examples with embedded notebook.
485485
try_it_button_html = (
486486
'<div class="try_examples_button_container">'
487-
'<button class="try_examples_button" '
487+
'<button class="try_examples_button hidden" '
488488
f"onclick=\"window.tryExamplesShowIframe('{examples_div_id}',"
489489
f"'{iframe_div_id}','{iframe_parent_div_id}','{iframe_src}',"
490490
f"'{height}')\">"

0 commit comments

Comments
 (0)