Standardise Buttons #632
MaggieAppleton
started this conversation in
Pitches
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This pitch proposes we standardise the buttons across the site.
At the moment we don't have a consistent Button component with standardized styles. Each button on the site is styled inline on individual pages. This leads to inconsistent button behaviours between sections of the site.
For example, here's two hover effects on the same type of primary button:
Creating consistent button components that matches the priority level of the call to action will help direct users to our most important CTAs, as well as helping them predict what a particular button will do.
Adobe's Spectrum guidelines are a great base for us to build off.
Particularly the variables they use:
Proposed revision of our button heirarchy:
Styles defined on these buttons all match the Tailwinds UI system. Specific styles can be inspected in the Figma document (link in Roam)
I'm not an expert on component architecture, but assume a structure where we pass variable props like
<Button primary large disabled />
would work well. Will leave that expertise to others.Once the component is built, we should document it in Storybook before implementing it across the site.
Beta Was this translation helpful? Give feedback.
All reactions