Skip to content

Commit

Permalink
Fix controls controls matchers table
Browse files Browse the repository at this point in the history
The symbol `&storybookjs#124;` is interpreted as a column separator which didn't show the description
  • Loading branch information
milhamm authored Feb 21, 2023
1 parent 35ece38 commit 81c905d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/essentials/controls.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ For a few types, Controls can automatically be inferred with [regex](https://dev

| Data type | Default regex | Description |
| :-------: | :--------------------------------------: | :-------------------------------------------------------: |
| **color** | <code>/(background&#124;color)$/i</code> | Will display a color picker UI for the args that match it |
| **color** | <code>/(background\|color)$/i</code> | Will display a color picker UI for the args that match it |
| **date** | `/Date$/` | Will display a date picker UI for the args that match it |

If you haven't used the CLI to setup the configuration, or if you want to define your own patterns, use the `matchers` property in the `controls` parameter:
Expand Down

0 comments on commit 81c905d

Please sign in to comment.