Skip to content
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

Buttons #16

Open
Tracked by #12
thibautsailly opened this issue Dec 7, 2023 · 5 comments
Open
Tracked by #12

Buttons #16

thibautsailly opened this issue Dec 7, 2023 · 5 comments
Assignees

Comments

@thibautsailly
Copy link
Contributor

thibautsailly commented Dec 7, 2023

Design and document buttons.

Ressources

Github
IBM
UK gov
US gov
Stripe
Apple

@thibautsailly
Copy link
Contributor Author

Here are the facets considered to start building our buttons:

  • anatomy
  • interactivity
  • role
  • size
  • layout

@thibautsailly
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant