-
Notifications
You must be signed in to change notification settings - Fork 1.4k
TagGroup: add maxRows prop to limit initially shown tags, and include 'Show all' button
#3759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
1a39b79
add defaultVisibleRows and initial functionality
reidbarber aba67e9
cleanup
reidbarber 31eeeb1
rename to maxRows
reidbarber 2937e02
switch to use quiet ActionButton
reidbarber c93a145
include collapse button on last row
reidbarber 5b1d073
revert cleanup
reidbarber 146e8c9
Merge branch 'main' into tagroup-show-all
reidbarber 888562d
update logic
reidbarber 3a97857
update to use generator
reidbarber ae21d32
Merge branch 'main' into tagroup-show-all
reidbarber 4b2ecbe
include show all button on last row
reidbarber 49b75a3
update story to fill width for resizing
reidbarber bba7bac
add test
reidbarber 4639f4d
cleanup
reidbarber af7d23e
add FocusScope
reidbarber 9e7bd1c
improve performance
reidbarber 58ffb28
add function for making room for collapse button
reidbarber dfc95aa
fix indention
reidbarber ca308a3
move into one function
reidbarber 62392e7
update test
reidbarber 5505e2f
address review comments
reidbarber 4d71351
fix logic for showing button
reidbarber 692654f
fix test
reidbarber 7941553
condense getBoundingClientRect calls
reidbarber fdbfc14
update test
reidbarber 7062bd2
Merge branch 'main' into tagroup-show-all
reidbarber f61d815
don't hide tags if all tags shown
reidbarber a240431
update mock values
reidbarber 1d941e1
Merge branch 'main' into tagroup-show-all
reidbarber f6204de
Merge branch 'main' into tagroup-show-all
reidbarber 6a1f746
update to CSF3
reidbarber d527fd1
add test for not showing button
reidbarber 740a6b0
Merge branch 'main' into tagroup-show-all
reidbarber 32479a1
handle case of container width smaller than tag
reidbarber d21265c
Merge branch 'main' into tagroup-show-all
reidbarber bf793f5
update deps
reidbarber 4e7ca75
use custom keyboardDelegate when collapsed
reidbarber fcafa64
lint
reidbarber df2409f
allow tabbing to collapse button
reidbarber 81f1877
lint
reidbarber a1c5d7a
fix button losing focus if focusedKey collapsed
reidbarber aa360a6
add story for onRemove + maxRows
reidbarber bbbd110
move button outside of grid
reidbarber d3a0f99
lint
reidbarber 0bb236e
Merge branch 'main' into tagroup-show-all
reidbarber c05009b
Merge branch 'main' into tagroup-show-all
reidbarber 3096d2c
fix refs for overflow detection
reidbarber f248c6e
add translation string
reidbarber df30f44
remove extraneous style
reidbarber 1c14b1b
fix actionbutton style
reidbarber 5874296
Merge branch 'main' into tagroup-show-all
reidbarber e8829a8
recalculate after fonts load
reidbarber a4c3f5e
Merge branch 'main' into tagroup-show-all
reidbarber 2bcfc57
Merge branch 'main' into tagroup-show-all
reidbarber File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "showAllButtonLabel": "Show all ({tagCount})", | ||
| "hideButtonLabel": "Show less" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.