diff --git a/.all-contributorsrc b/.all-contributorsrc index 5e98bc5..c52f03e 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -63,6 +63,17 @@ "test" ] }, + { + "login": "vivekitis", + "name": "Vivek Ashokan", + "avatar_url": "https://avatars2.githubusercontent.com/u/16322466?v=4", + "profile": "https://github.com/vivekitis", + "contributions": [ + "code", + "doc", + "example" + ] + }, { "login": "42tte", "name": "Kristoffer Nordström", diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html index 73a8d97..7236667 100644 --- a/.storybook/preview-head.html +++ b/.storybook/preview-head.html @@ -1,89 +1,91 @@ + #autosuggest__input.autosuggest__input--open { + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + } + + .autosuggest__results-container { + position: relative; + width: 100%; + } + + .autosuggest__results { + font-weight: 300; + margin: 0; + position: absolute; + z-index: 10000001; + width: 100%; + border: 1px solid #e0e0e0; + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; + background: white; + padding: 0px; + } + + .autosuggest__results ul { + list-style: none; + padding-left: 0; + margin: 0; + } + + .autosuggest__results .autosuggest__results-item { + cursor: pointer; + padding: 15px; + } + + #autosuggest ul:nth-child(1)>.autosuggest__results-before { + border-top: none; + } + + .autosuggest__results .autosuggest__results-before { + color: gray; + font-size: 11px; + margin-left: 0; + padding: 15px 13px 5px; + border-top: 1px solid lightgray; + } + + .autosuggest__results .autosuggest__results-item:active, + .autosuggest__results .autosuggest__results-item:focus, + .autosuggest__results .autosuggest__results-item.autosuggest__results-item--highlighted { + background-color: rgba(0, 0, 0, 0.04); + } + + .autosuggest__results { + overflow: scroll; + max-height: 400px; + } + + .autosuggest__results .autosuggest__results-after { + color: gray; + font-size: 11px; + margin-left: 0; + padding: 15px 13px 5px; + border-top: 1px solid lightgray; + } + + .highlightAutoItem { + background-color: rgba(0, 0, 0, 0.4); + } + \ No newline at end of file diff --git a/README.md b/README.md index 2b65146..61a4fcc 100644 --- a/README.md +++ b/README.md @@ -300,27 +300,28 @@ vue-autosuggest does not have an opinion about how you render the items in your ## [Props](#props) -| Prop | Type | Required | Description | -| :------------------------------------------ | :------- | :------: | :-------------------------------------------------------- | -| [`suggestions`](#suggestionsProp) | Array | ✓ | Suggestions to be rendered. e.g.`suggestions: [{data: ['harry','ron','hermione']}]` | -| [`input-props`](#inputPropsTable) | Object | ✓ | Add props to the ``. | -| [`section-configs`](#sectionConfigsProp) | Object | | Define multiple sections ``. | -| [`render-suggestion`](#renderSuggestion) | Function | | Tell vue-autosuggest how to render inside the `
Tab throw each component and use arrow keys to test isolation of functionality.
+