OpenRailAssociation / osrd-design

Design guidelines & documentation
GNU General Public License v3.0
0 stars 0 forks source link

Buttons #16

Open thibautsailly opened 10 months ago

thibautsailly commented 10 months ago

Design and document buttons.

Ressources

Github IBM UK gov US gov Stripe Apple

thibautsailly commented 10 months ago

Here are the facets considered to start building our buttons:

thibautsailly commented 10 months ago

Gov uk makes a clever distinction for start buttons. Their role is to initiate a process, not to submit information; it makes sense that they would be presented differently from primary buttons.

thibautsailly commented 10 months ago

Disabled buttons are out, inactive buttons are in: disabled buttons are unclickable and leave no clue as to why they ended up in this state. Inactive buttons on the other end are clickable, but won't do anything but display a short message explaining why the action can't be performed. See Github's explanation.

thibautsailly commented 10 months ago

Wikimedia proposes a toggle button, but it seems out of place in buttons. It's a different component in itself and will be specified as such.

thibautsailly commented 10 months ago

Adding an icon to a button should happen for actions where the icon is very familiar with users (see Apple's HIG). For OSRD, it will probably concern actions which are not so common for the general public but are well identify for railway industry members.