canonical / design-vanilla-framework

Design components for Vanilla Framework.
https://vanillaframework.io
GNU General Public License v3.0
62 stars 11 forks source link

Review icon usage and functions #418

Closed kwm14 closed 5 years ago

kwm14 commented 5 years ago

Reviewed our components to see where we use icons, their function, and usage. I've added a table to the Google doc.

kwm14 commented 5 years ago

Examples

These frameworks have huge icon libraries compared to the 23 we currently have in Vanilla, but it's good to see how they group and categorize icons.

Salesforce | Lightning Design System Categories

IBM | Design Language Categories

Bloomberg | Fish Tank Categories

kwm14 commented 5 years ago

@matthewpaulthomas I've added proposal to the document for categorizing the icons in Vanilla, it would be great to for you to review and get your thoughts? šŸ˜„

matthewpaulthomas commented 5 years ago

What started this project was that putting a buttonā€™s ā€œ+ā€ icon on the left (correct) caused menubutton chevrons to be on the left too (incorrect). So I suggested that the chevron is not actually an icon: it doesnā€™t necessarily appear where an icon does, and giving a menubutton an icon shouldnā€™t cause the menubuttonā€™s chevron to disappear.

Screenshot from 2019-08-15 10:23:02

So p-icon--plus and p-icon--minus are in the wrong place here. They are still presented as alternatives to p-icon--contextual-menu when they should not be.

Further, I donā€™t think the chevrons, drag symbol, or expand/collapse symbols should be advertised as ā€œiconsā€ at all. Developers shouldnā€™t use them in places where they would normally use icons; that would confuse users about how they behave. The main reason for developers to care about those symbols is if they are making custom controls that mimic Vanilla ones, for example expandable table cells. Maybe there should be a separate page on custom controls, describing how to use the standard symbols as well as things like how to use the standard margin, padding, border, and shadow.

If the behaviour symbols were omitted from the icons page, thereā€™d be only 19 non-social icons left. Thatā€™s a small enough number that I donā€™t think categorisation is that useful. Itā€™s more important in those other libraries since they have many more icons.

kwm14 commented 5 years ago

Thanks, @matthewpaulthomas for looking at my proposal and raising some valid points.

If the behavior symbols were omitted from the icons page, thereā€™d be only 19 non-social icons left. Thatā€™s a small enough number that I donā€™t think categorization is that useful. Itā€™s more important in those other libraries since they have many more icons.

Agree to not categorize our current icons until the library grows more with requests from applications šŸ‘

But I will pull out status icons into their own category as they're solely used in notifications.