-
Notifications
You must be signed in to change notification settings - Fork 43
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
New pattern proposal: reveal/collapse elements #1139
Comments
Hi, sounds like an interesting idea! I could imagine to add automatic sorting as a feature to A related pattern to this idea is In any case, you might be able to get what you want with pure CSS.
and then do a animation on the height of the If you decide to go for a Pattern:
The pattern template repo should get you quickly started. Please don't read anything except "module federation" or "styleguide" from https://github.com/Patternslib/Patterns/tree/master/docs/developer - this is still outdated. |
@thet thanks! 🙇🏾 I will have a look and decide 😄 |
@gforcada let me know if I can help bootstrapping a new pattern or getting this done |
The idea
I have a list of say tags of a document, but there are way too many, applying this pattern, given a
data-reveal-amount
number, that number of tags are shown, the others are hidden behind a button that reveals them 🎉Extra nice would be if elements are sorted given a
data-reveal-key
that is sortable within the elements of the list.This way, if each tag has a relevance number, the most relevant could be sorted, so by automatically hiding the other elements, the most relevant tags would be shown.
Implementation
Is there any pattern that provides this functionality? I could not find any, the sortable allows manual sorting, not automatic sorting, AFAIU
Are there guidelines on how to create a new pattern and submit it? 🤔
The text was updated successfully, but these errors were encountered: