department-of-veterans-affairs / vets-design-system-documentation

Repository for design.va.gov website
https://design.va.gov
36 stars 55 forks source link

Experimental Design [primary action link] #1459

Open joshkimux opened 1 year ago

joshkimux commented 1 year ago

What

Improvement to the primary action link (green) on the design system

Purpose

Several conversations have emerged over the visual prominence of the action link when

Usability testing from some teams forming hypothesis that users may be missing the action link due to its lack of visual hierarchy, with the occasional suggestion to redesign it as a button (sacrificing material honesty).

In order to address those issues, I'd like to propose an updated, more prominent version of the primary action link button.

Usage

This updated version should based on the current principles:

Use a primary (green) Action Link for the primary call to action on a page or the start of a digital service. Use only one primary Action link per page.

AND, when it is not nested within an alert or card (in which the card itself should be visually prominent enough to garner attention).

Specifically, in scenarios like this where a user has logged in and is ready to start their service:

Screen Shot 2023-01-23 at 8 22 29 AM

Behavior

I'm proposing the following changes to the primary action link:

Examples

After vs. before

Screen Shot 2023-01-23 at 8 32 20 AM

Accessibility

Focus wraps around full element, larger click target on mobile

Screen Shot 2023-01-23 at 8 33 58 AM

Guidance

This serves a very specific niche for form state pages and shouldn't be used elsewhere (in most cases).

A possible alternative placement could be in modals with secondary buttons:

Before

Screen Shot 2023-01-23 at 8 43 58 AM

After

Screen Shot 2023-01-23 at 8 43 25 AM

Research (optional)

The check in team had research that led them to hypothesize the visual prominence of the link was the issue. I'd be curious to see how results would fare with this pattern.

I took inspiration from recommendations by NHS (where we originally got the pattern from) to simply increase padding and size.

Code (optional)

For the example, I tweaked the following:

Next steps

Note: this is more of a backlog request to be presented in the case a team is worried about the visual prominence of an action link again. Writing this ahead of time to provide options for them to explore. I don't have the bandwidth to push this forwards on my own 🙇

humancompanion-usds commented 1 year ago

I've continued to iterate on this design here: https://www.sketch.com/s/be292806-8dbf-4201-bfa7-0edbba103347/p/3DB6F4DD-A6B9-4BC5-9760-E2BDCB01C8ED/canvas

and here in modals: https://www.sketch.com/s/be292806-8dbf-4201-bfa7-0edbba103347/p/B323B60B-8BD0-4B92-9022-738A65FD36FB/canvas

The team working on replacing DS Login with Login.gov is testing with the E.2 variation for modals.

joshkimux commented 1 year ago

@humancompanion-usds feel free to update the main ticket with more iterations and replace the trashy one I quickly drafted 😆 thank you for continuing to iterate on it!

humancompanion-usds commented 1 year ago

Here are 2 variations side by side that we could test out:

Screen Shot 2023-04-04 at 2 06 56 PM
humancompanion-usds commented 1 year ago

@allison0034 - Is my memory correct, did the Identity folks use this in their design?

allison0034 commented 1 year ago

I believe they did. Here is their collab cycle ticket. It looks like the are waiting for a staging review. And here is their research repo.

humancompanion-usds commented 5 months ago

@allison0034 - Can you try to track down an example of this with the Identity team? I'd like to get this added. Thanks.

allison0034 commented 5 months ago

@humancompanion-usds this did not ship. I did some digging in Slack and it is still in the Awaiting Staging review pipeline. I can get a screen cap of Sketch if you want?

allison0034 commented 5 months ago

And to further complicate things, they are no longer using an action link per this Slack convo. We had some teams recently come thru Collab Cycle that have action links, do you want me to reach out to see if they are willing to try this? I assume you want user testing done?

humancompanion-usds commented 5 months ago

@allison0034 - Yes and yes, please. Thanks!

humancompanion-usds commented 3 months ago

@allison0034 to task the 21-686C team with testing this in an Intro page. @humancompanion-usds will ask the VFF team if they can test this out.

allison0034 commented 3 months ago

Unfortunately they are not testing that page. I will keep my eyes out for another form.

humancompanion-usds commented 3 months ago

I will assign this to the Veteran-facing Forms team.

humancompanion-usds commented 1 month ago

@jeana-adhoc and @rachelshearerux will handle this as part of upcoming forms team work. I created these variations:

Image

Jeana and DK will review these and pick one to usability test.

humancompanion-usds commented 1 month ago

@jeana-adhoc and @briandeconinck have arrived at this alteration which gives this component a unique shape:

Screenshot 2024-04-30 at 11.32.17 AM.png

Brian has even solved for wrapping the focus state around the pointy bit. Huzzah! We're going to test this variation and then bring it to DSC.

humancompanion-usds commented 1 month ago

Latest iterations are in this Figma file

Image