docbrown/app/javascript/crayons
Suzanne Aitchison 494d92d74c
Create mention autocomplete: initial storybook component (#12831)
* initial setup of component

* initial styles applied

* add some initial docs

* small tweaks to story

* add some very initial tests

* tweaks to styles to add border bottom

* add some preact tests

* import default style in jsx, ignore in jest

* WIP - create MentionAutocompleteListener, attempt to position popover

* position dropdown correctly, exit selection in various scenarios

* refactor

* make sure cursor placed correctly after selection

* only import autocomplete when needed

* rename files, add jsdoc

* update tests and story notes

* tidy up scss file

* fix story styling

* fix aria label in story

* fix issue with key event not triggering in mobile

* position dropdown at input left if small screen

* fix issue with deleting and re-entering

* don't trigger search if directly following a letter or number

* stop change event being fired with highihted text

* move regex out of function into constant
2021-03-05 13:18:26 +00:00
..
avatarsAndLogos Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
Button Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
ButtonGroup Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
Dropdown Storybook dropdown should be accessible 11724 (#12295) 2021-01-19 08:51:37 +00:00
formElements Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
guidelines/__stories__ Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
Indicator/__stories__ Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
MentionAutocomplete Create mention autocomplete: initial storybook component (#12831) 2021-03-05 13:18:26 +00:00
Modal improve keyboard accessibility of modals 12427 10610 (#12511) 2021-02-24 16:01:10 +00:00
navigation Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
Notice/__stories__ Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
Select/__stories__ Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
Spinner Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
storybook-utilities Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
typography/__stories__ Text styles (#11743) 2021-02-04 11:43:59 +01:00
index.js Added spinner/upload message when uploading an image to a post's content (#8986) 2020-06-30 13:52:47 -04:00