-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add store sort #1861
Add store sort #1861
Conversation
Nice. I'm having a bit of trouble with the icon though:
What about something like the font awesome sort icon, but with state display: initially/unsorted grayed out arrows, sorted direction highlighted. |
Yeah, I can update the icon. We already use this icon on another page (apps) so I just used the same icon here. |
@dennisreimann Looks like I can't use the dualtone icon to highlight the sort direction as it's only available in the pro version of Font Awesome. How about this? I added a regular sort icon for non-sorted state and an alphanumeric ascending/descending icon for the sorted states. |
Pinging @dstrukt here, because he might also have input :) |
I do :)
But given the FA pro constraint...I had more questions and clarifications, which will also be helpful for the design system documentation:
Assuming nothing custom, etc.. is possible, I think utilizing the A-Z could also work, however the left spacing on the icon should be adjusted slightly (2 or 4px). Might be more than needed at this moment, but I've also mocked up a minimal state functionality for tables as well -- trying to get us to this point with all assets / components, and potentially with animatics in the future @dennisreimann will address the invoice ticket when i get another spare chunk of tonight And to give further context to see an A/B/C comparison: |
I believe it's mostly just the standard font-awesome icons. There are SVGs used for logos and whatnot.
I don't see why not. As long as it's not a PITA to use from the development perspective.
I can do this.
Do you mean that there should be no icon shown initially and show it only once you click on the table heading to initiate the sort? This is in conflict of the original feedback from @dennisreimann (if I understand everything correctly):
Once we have the above questions answered I can go ahead with the changes and also update the other page which has sorting (apps page). |
There's always at least one sort active (which isn't completely clear in that first mock -- should have shown it switching, instead of non-existent), but only one of the sort options should be visible at any given time. Corrected (my apologies): @dennisreimann Curious to hear your thinking as well. @bolatovumar I've used icomoon in the past and it was no different than incorporating FA into the project - but I would also lean on a/the developer to give me their final say (if they don't mind) - creating and delivering the icons is easy. |
I like the version @dstrukt proposed, though I could see the need to display the arrows even for unsorted columns so that people know they can sort them. For now I think we should solve this with the tools we have currently and introduce custom icons or update them during the Bootstrap 5 migration. |
There is a bit of an issue with having the table headers be grey AND not have the sorting icon shown by default because then that looks no different from any other table which doesn't have sorting. With this style of headings users would not know that the table is sortable unless they click on the heading. For now, I think I will leave it at this version and we can update the styling if needed after the Bootstap 5 migration that @dennisreimann mentioned above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
close #1837