rubyforgood / human-essentials

Human Essentials is an inventory management system for diaper, incontinence, and period-supply banks. It supports them in distributing to partners, tracking inventory, and reporting stats and analytics.
https://humanessentials.app
MIT License
452 stars 485 forks source link

Unify Button styles and availability across donations, distributions etc #477

Closed mdworken closed 6 years ago

mdworken commented 6 years ago

We should cleanup the way we use buttons regarding edit, view, print, etc etc. Examples of things to fix:

armahillo commented 6 years ago

YES PLEASE.

I was trying to do this with the styleguide but just haven't had time (cf. #241) : https://github.com/rubyforgood/diaper/wiki/Styleguide

My thoughts on this from before

Colors

Positioning

I'll add more if I can remember anything further

seanmarcia commented 6 years ago

We should probably unify the font-awesome icons in our buttons as well. Some buttons have icons and others don't.

armahillo commented 6 years ago
armahillo commented 6 years ago

My recommendation, right now -- please discuss / pushback if you disagree:

Icons are mandatory for any buttons that use red or green (for colorblindness).

All button text should be a present-tense verb that clearly indicates the intent of the action. (Mostly, these should be intuitive). Should be a single word, though if you think there's a good case for multiple words, then feel free to bring it up for discussion.

armahillo commented 6 years ago

This looks like a good list to start on for evaluation

aaron@toph:~/Documents/Code/rails/diaper/app/views$ grep -lR btn *