From 718e6b32a94ec985287e182f9d644b62411d6261 Mon Sep 17 00:00:00 2001 From: Roman Axelrod Date: Mon, 2 May 2022 13:16:40 +0300 Subject: [PATCH] Added delivery test to README file. --- generators/block/templates/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/generators/block/templates/README.md b/generators/block/templates/README.md index 878d8fd..ca90d44 100644 --- a/generators/block/templates/README.md +++ b/generators/block/templates/README.md @@ -116,6 +116,18 @@ Check the [Video Guide](https://www.loom.com/share/1c707a4ea14e48b7a35a49d7b0a6f Use development toolbar to switch between data sources. +### Conditional Statements +Make sure the data is available in Handlebars template. +If there is a chance that some data/property will be missing - wrap the HTML layout with conditional verification: + +Example: +Render the link only if URL exists +``` +{{#if link_cta_url }} +Click Here +{{ endif }} +``` + ### Hover/Focus States ✔️ Make sure all "clickable" elements have `&:hover` & `&:focus` states in CSS rules.