summaryrefslogtreecommitdiffstats
path: root/examples/tour.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tour.rs')
-rw-r--r--examples/tour.rs18
1 files changed, 13 insertions, 5 deletions
diff --git a/examples/tour.rs b/examples/tour.rs
index 8dbae2b8..f5d3f28d 100644
--- a/examples/tour.rs
+++ b/examples/tour.rs
@@ -622,11 +622,19 @@ impl<'a> Step {
"Give it a shot! Check the following checkbox to be able to \
see element boundaries.",
))
- .push(Checkbox::new(
- debug,
- "Explain layout",
- StepMessage::DebugToggled,
- ))
+ .push(if cfg!(target_arch = "wasm32") {
+ Element::new(
+ Text::new("Not available on web yet!")
+ .color([0.7, 0.7, 0.7])
+ .horizontal_alignment(HorizontalAlignment::Center),
+ )
+ } else {
+ Element::new(Checkbox::new(
+ debug,
+ "Explain layout",
+ StepMessage::DebugToggled,
+ ))
+ })
.push(Text::new("Feel free to go back and take a look."))
}