Problem/Motivation
Some projects on Drupal.org have many, many categories checked (some have all checked!). The _right_ fix is to re-work the categorization on Drupal.org and to allow a max of three categories for any project. With that said, until that is done, we need a UI that will work even when there is a high number of categories.
Steps to reproduce
See AddToAny Share Buttons module in card view for example.
Proposed resolution
Display an extra bit of data such as "(+4 more)" for showing that there's more categories, but keeping the display consistent.
Remaining tasks
- ✅ File an issue about this project
- ☐ Addition/Change/Update/Fix to this project
- ☐ Testing to ensure no regression
- ☐ Automated unit/functional testing coverage
- ☐ Developer Documentation support on feature change/addition
- ☐ User Guide Documentation support on feature change/addition
- ☐ Code review from 1 Drupal core team member
- ☐ Full testing and approval
- ☐ Credit contributors
- ☐ Review with the product owner
- ☐ Release
User interface changes
Changes to category display on cards.
Comments
Comment #2
chrisfromredfinComment #3
bnjmnmSince there will eventually be a 3 category limit, I'd like to avoid the Modal approach. The Drupal dialog integration is just complex enough that I'd rather it not be in something temporary. The "...4 more" approach sounds good IMO.
Comment #4
chrisfromredfinYes, I'm definitely arguing for the "... 4 more" approach; and if they're interested in what those are they can go to the detail page / d.o page.
Comment #6
tim.plunkettHere's a first attempt. But this styling doesn't look right at all, any thoughts?
Comment #8
fjgarlin commentedPerhaps drop the background and the parenthesis?
Comment #9
fjgarlin commentedLike this:

Comment #10
tim.plunkettSemantically should it also be an LI tag but with a class for changing the visual display?
Or should it be another tag outside the UL?
Comment #11
tim.plunkettComment #12
tim.plunkettDiscussed with @bnjmnm and he agreed it should be semantically in the same list. Plan is to drop the parentheses, and style the extra pill like this:
Comment #13
bnjmnmComment #14
omkar-pd commentedTested the MR and looks good. Can be moved to RTBC. But as tests are failed so not moving this to RTBC.
Comment #15
omkar-pd commentedLooks good. moving this to RTBC.
Comment #17
tim.plunkettLooks great, thanks!