Merge branch 'chore_polish_writing_stories' of https://github.com/storybookjs/storybook into chore_polish_writing_stories

This commit is contained in:
jonniebigodes 2021-10-08 19:33:20 +01:00
commit c8e3c1e1d5

View File

@ -185,7 +185,7 @@ If you need, you can also adjust your `play` function to find elements based on
## Working with the Canvas
With each interaction you write inside your `play` function when Storybook executes it, it starts from the top-level element of the Canvas, acceptable for smaller components (e.g., buttons, checkboxes, text inputs). For complex components (e.g., forms, pages), we recommend that you adjust your stories and start from the component's root, for example:
By default, each interaction you write inside your `play` function will be executed starting from the top-level element of the Canvas. This is acceptable for smaller components (e.g., buttons, checkboxes, text inputs), but can be inefficient for complex components (e.g., forms, pages). To accommodate this, you can adjust your interactions to start execution from the component's root. For example:
<!-- prettier-ignore-start -->