react-spectrum
1faa59e3 - TagGroup: add `maxRows` prop to limit initially shown tags, and include 'Show all' button (#3759)

Commit
3 years ago
TagGroup: add `maxRows` prop to limit initially shown tags, and include 'Show all' button (#3759) * add defaultVisibleRows and initial functionality * cleanup * rename to maxRows * switch to use quiet ActionButton * include collapse button on last row * revert cleanup * update logic * update to use generator * include show all button on last row * update story to fill width for resizing * add test * cleanup * add FocusScope * improve performance * add function for making room for collapse button * fix indention * move into one function * update test * address review comments * fix logic for showing button * fix test * condense getBoundingClientRect calls * update test * don't hide tags if all tags shown * update mock values * update to CSF3 * add test for not showing button * handle case of container width smaller than tag * update deps * use custom keyboardDelegate when collapsed * lint * allow tabbing to collapse button * lint * fix button losing focus if focusedKey collapsed * add story for onRemove + maxRows * move button outside of grid * lint * fix refs for overflow detection * add translation string * remove extraneous style * fix actionbutton style * recalculate after fonts load
Author
Parents
Loading