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

Add guidance for CTA buttons vs primary action buttons #2936

Merged
merged 3 commits into from
Oct 7, 2022

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Oct 4, 2022

Deploy Preview

What does this PR do?

This work is leveraging CTA button theming that is currently only NEXT branch. Once NEXT merges into master, we can update this PR to point back to stable.

Adds guidance regarding primary cta buttons vs primary action buttons -- what they, what their purpose is, when to use. Pulled the content directly from the Brand Synthesis work.

Adds an example of CTA buttons to the Variants section.

Separate question about the overall page structure, I'm wondering if we can do away with the "Guidance" h2 and promote everything from About Button --> Accessibility directly to an h2? Feels like unnecessary nesting.

Where should the reviewer start?

aries-site/src/pages/components/button.mdx

What testing has been done on this PR?

Deployed locally.

In addition to the feature you are implementing, have you checked the following:

General UX Checks

  • Small, medium, and large screen sizes
  • Cross-browsers (FireFox, Chrome, and Safari)
  • Light & dark modes
  • All hyperlinks route properly

Accessibility Checks

  • Keyboard interactions
  • Screen reader experience
  • Run WAVE accessibility plugin (Chrome)

Code Quality Checks

  • Console is free of warnings and errors
  • Passes E2E commit checks
  • Visual snapshots are reasonable

How should this be manually tested?

Any background context you want to provide?

What are the relevant issues?

Related to grommet/grommet-theme-hpe#275

Screenshots (if appropriate)

Should this PR be mentioned in Design System updates?

Yes.

Is this change backwards compatible or is it a breaking change?

Yes.

@taysea taysea requested a review from halocline October 4, 2022 21:16
@taysea taysea marked this pull request as ready for review October 7, 2022 22:29
@taysea taysea changed the title Stage primary and cta button guidance Add guidance for CTA buttons vs primary action buttons Oct 7, 2022
@halocline halocline merged commit 5831f99 into master Oct 7, 2022
@halocline halocline deleted the cta-vs-primary-action-button branch October 7, 2022 22:40
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

Successfully merging this pull request may close these issues.

2 participants