Skip to content

Commit

Permalink
docs(styleguidist): Upgrade styleguidist to 6.2. Remove leftover Adob…
Browse files Browse the repository at this point in the history
…e script stuff from the index.
  • Loading branch information
ryanoglesby08 committed Feb 7, 2018
1 parent 9481d7c commit f68681b
Show file tree
Hide file tree
Showing 4 changed files with 1,368 additions and 681 deletions.
9 changes: 1 addition & 8 deletions docs/dev-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,11 @@
<meta charset="utf-8">
<title><%=htmlWebpackPlugin.options.title%></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="favicon" href="/favicon.ico">
<script>
window.dataLayer = {
page: {
name: '<%=htmlWebpackPlugin.options.title%>'
}
};
</script>
<script src="//cdn.polyfill.io/v2/polyfill.min.js?features=Set"></script>
</head>
<body>
<div id="app"></div>
<script type="text/javascript">_satellite.pageBottom();</script>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"react-dom": "^16.1.0",
"react-flexbox-grid": "^2.0.0",
"react-media": "^1.6.1",
"react-styleguidist": "^6.0.29",
"react-styleguidist": "^6.2.3",
"react-test-renderer": "^16.0.0",
"react-transition-group": "^2.2.1",
"rollup": "^0.50.0",
Expand Down
8 changes: 4 additions & 4 deletions src/components/Select/Select.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
### Usage criteria

* Include a `placeholder` to provide instructions such as "Please select…" as an unselectabale option (recommended)
* Include a `placeholder` to provide instructions such as "Please select…" as an unselectabale option (recommended)
* Use when options are between 7-15 (recommended)
* For options are 6 and under, use [`radio`](#radio) groups
* For options 15 and above, look for alternatives (e.g grouping into categories, or input field with auto-complete etc.)
* For options 15 and above, look for alternatives (e.g grouping into categories, or input field with auto-complete etc.)

<a href=“https://baymard.com/blog/drop-down-usability target="_blank">Reference</a>
[Reference](https://baymard.com/blog/drop-down-usability)

```
<Select
<Select
label="Province"
placeholder="Please select..."
options={[{text: 'Alberta', value: 'AB'}, {text: 'British Columbia', value: 'BC'}, {text: 'Ontario', value: 'ON'}, {text: 'Quebec', value: 'QC'}]}
Expand Down
Loading

0 comments on commit f68681b

Please sign in to comment.