docbrown/app/javascript/shared/components
Suzanne Aitchison 222ce06f0f
Add new tag autocomplete to editor (#16025)
* add default placeholder, remove focus on first load

* fix some bugs re autofocus and mouse click to select

* allow custom selected styles to be passed in

* operate on objects with name property rather than plain strings

* WIP main functionality in place

* set default selections, allow a max to be placed on selections

* switch help context

* bug fixes to edit mode, static suggestions

* make sure suggestion resumes when edit begins

* cleanup and docs

* update existing form test

* add component tests

* add more component test cases

* refactor max selections flow, ensure default tag data only loads once

* stop removing combobox properties now the input stays visible

* add max selections test

* refactor

* make sure input refocus happens after blur event

* update cypress tests

* some small renames and doc changes

* only fetch exact matches from added tags

* fix test, update dark theme background

* set a max height on the popover, and ensure options can be scrolled into view

* woops - max height

* Update app/javascript/article-form/components/TagsField.jsx

Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>

* refactors

* stop dropdown from flickering

* use ButtonNew

* remove redundant variant

* nudge PR checks

Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2022-01-21 08:58:05 +00:00
..
__tests__ Fixed test that breaks once upgraded to Node 16. (#15621) 2021-12-01 09:24:03 -06:00
dateTime.jsx Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
focusTrap.jsx improve keyboard accessibility of modals 12427 10610 (#12511) 2021-02-24 16:01:10 +00:00
MediaQuery.jsx Created the <MediaQuery /> component and useMediaQuery hook. (#12809) 2021-02-25 14:28:44 -05:00
tags.jsx Add new tag autocomplete to editor (#16025) 2022-01-21 08:58:05 +00:00
useKeyboardShortcuts.js treat cmd and ctrl key shortcuts separately on macOS (#15265) 2021-11-03 11:54:15 +00:00
useListNavigation.js Fix feed navigation shortcuts when first article is not 100% visible (#11874) 2021-04-13 22:35:50 -04:00
useMediaQuery.js Fixed Reading List on Mobile + Small Improvements (#12755) 2021-04-08 12:53:43 +01:00