Browse Source

Added delivery test to README file.

pull/1/head
Roman Axelrod 4 years ago
parent
commit
718e6b32a9
  1. 12
      generators/block/templates/README.md

12
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 }}
<a href="{{link_cta_url}}">Click Here</a>
{{ endif }}
```
### Hover/Focus States ✔️
Make sure all "clickable" elements have `&:hover` & `&:focus` states in CSS rules.

Loading…
Cancel
Save