cds-snc / platform-forms-client

NextJS application that serves the public-facing website for Forms
https://forms-staging.cdssandbox.xyz/
MIT License
34 stars 13 forks source link

Consistency in primary and secondary button placement #4109

Open anikbrazeau opened 3 months ago

anikbrazeau commented 3 months ago

Description

In some modals and pages in the app, primary buttons are on the left of secondary buttons, in other places they are on the right.

To ensure consistency and predictability for users, we may want to revisit what that pattern looks like.

Steps to reproduce

  1. Go to GC Forms > Edit
  2. Add a question
  3. Go to "More"
  4. Then go to the top of the form and click the three dots to enter the modal for branding/classification
  5. Notice how both treat buttons differently
  6. There are likely some other instances where we also have a difference

Details

Expected behaviour

Reevaluate all buttons.

Display button relationship the same way throughout the app. cc @samsadasivan @connorscarolyns should primary button be on left or right in relation to secondary?

Screenshots or videos

modal1

modal 2

anikbrazeau commented 4 weeks ago

Consider putting the primary action first as it will be read first on screenreader

ex: Read "Continue" before "Back"

Screenshot 2024-10-16 at 1 14 10 PM Screenshot 2024-10-16 at 8 34 37 AM