react-spectrum
430f2963 - Docs for maxRows and onAction in TagGroup (#3918)

Commit
2 years ago
Docs for maxRows and onAction in TagGroup (#3918) * 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 support for actions * add story for onRemove + maxRows * improve stories * add tests * move button outside of grid * lint * update action API * lint * lint * fix refs for overflow detection * add translation string * remove extraneous style * fix actionbutton style * recalculate after fonts load * add container for actions * fix merge conflicts * fix merge conflict * fix merge conflict * add onAction example * add example for maxRows * ensure onAction doesn't make it to useGridList * add test * improve css specificity * add highlighting * remove extra from merge * reduce # of tags in onRemove example * reduce maxRows container height --------- Co-authored-by: Danni <drobinson@livefyre.com>
Author
Parents
Loading