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

Publish Exit this Page component #1755

Closed
39 tasks done
trang-erskine opened this issue Jun 30, 2021 · 8 comments
Closed
39 tasks done

Publish Exit this Page component #1755

trang-erskine opened this issue Jun 30, 2021 · 8 comments

Comments

@trang-erskine
Copy link
Contributor

trang-erskine commented Jun 30, 2021

What

Hide this page component (aka Exit this Page) was contributed to the Design System in 2020.
alphagov/govuk-design-system-backlog#213

Why

This component and pattern can be used by service to help users in exit a service quickly when in risky situations.

Epic lead(s)

Katrina & Ciandelle

Who needs to work on this

Designers, Developers, Content Designer, Technical Writer, Accessibility Specialist, Delivery Manager, Product Manager, Exit this Page steering group, Design System working group, GDS Comms team, Home Office Domestic Abuse team / GOV.UK content team

Associated stories

Scoping

Tasks

  1. contribution
    christopherthomasdesign
  2. owenatgov
  3. contribution
    ImranH-GDS Katrina-Birch
    kellylee-gds

Research and assurance

Tasks

  1. research
    Katrina-Birch dav-idc
  2. Ciandelle dav-idc
    owenatgov
  3. accessibility research
    Katrina-Birch dav-idc
  4. accessibility analysis research
    Katrina-Birch dav-idc
  5. research
    Katrina-Birch
  6. analysis research
    Katrina-Birch
  7. analysis research
    Katrina-Birch
  8. research
    Katrina-Birch
  9. 8 of 8
    community epic
    Ciandelle ImranH-GDS
    Katrina-Birch kellylee-gds
  10. analysis
    kellylee-gds

Development

Guidance

Tasks

  1. 12 of 13
    epic exit this page guidance
    Ciandelle calvin-lau-sig7
  2. 5 of 6
    epic guidance
    Ciandelle calvin-lau-sig7
  3. examples
    Ciandelle
  4. guidance
    calvin-lau-sig7
  5. 4 of 4
    guidance
    calvin-lau-sig7

Comms

Tasks

  1. internal promotion promotion
    Ciandelle Katrina-Birch
    kellylee-gds
  2. community exit this page guidance
    Katrina-Birch
  3. exit this page internal promotion promotion
    Katrina-Birch

Shipping

Tasks

  1. process
    kellylee-gds
  2. Ciandelle
  3. analytics community research
    Ciandelle kellylee-gds
  4. community 🚀 release
    claireashworth
  5. Ciandelle christopherthomasdesign
  6. community research
    kellylee-gds
  7. analytics design research
  8. 8 of 8
    epic 🚀 release

Next

@trang-erskine trang-erskine added epic Epics are used in planning project boards to group related stories awaiting triage Needs triaging by team labels Jun 30, 2021
@owenatgov
Copy link
Contributor

Proposed solutions (Feb 10)

As of February 10th, we have a fairly functional on-screen hide this page component for sighted users. It sits fixed at the bottom of the page on mobile and at the top-right of the page on desktop. It is styled as a warning button, complete with a red background.

The final decision for the on-screen functionality is the placement of the component, relative to the page body and header.

Our proposed solution as of Feb 10th:

Split the component into two portions: a screen reader element and an on-screen element. The screen reader element would be styled and built similar to a skip link.

Proposed specifications:

  • It could be placed directly after the skip link in the HTML
  • It could use either the skip link yellow colour or the warning red colour (to match the hide this page on-screen element
  • It could show up visually on-focus (via tabbing) just like a skip link
  • It could be navigated to easily via screen reader, by returning to the top of the page and then tabbing twice

The on-screen element would be styled the same as we’ve previously proposed, but could now feasibly be positioned anywhere in the page’s HTML

Proposed specifications:

It could be positioned vertically to be in-line with the page title initially, and then become fixed at the top of the viewport once the page is scrolled past the title (more testing needed).

We will also be exploring a keyboard shortcut for desktop users, specifically keyboard navigation and screen reader users, to potentially minimise time needed to reach the button. This will require research and testing as we need to consider users with motor issues, different keyboards across multiple locales and existing keyboard shortcuts we could be interfering with.

This proposal will require further investigation. It would help us to create a tailored experience for people navigating visually and people navigating via screen reader or keyboard.

@jbuller
Copy link

jbuller commented Feb 12, 2022

What thoughts have been given to a discrete way to activate the button using voice only?

@owenatgov
Copy link
Contributor

Hey @jbuller

Thanks for the prompt. This is an important group to consider. We discussed this scenario briefly during the kick off phase of this work, however we have yet to come across a satisfactorily useful solution for users navigating via voice control. Since we don’t have a suitable solution at the moment, we don’t have anything for it in the above update.

It's worth noting that voice control users (in this case using Dragon Naturally Speaking as our stand-in tech) have a number of ways to access the button other than saying "click hide this page" out loud:

  • They could navigate the mouse over the hide this page element using mouse commands and then say “Mouse click”
  • They could use “show links to list the links, navigate to the proper link, then say “click link”
  • They could use the mouse grid system to zone in on the button and say "click link"

We're conscious that the above aren't the best or most efficient experience. We are open to ideas and suggestions at this stage, if you or anyone else has experience in developing discreet commands for voice control navigation.

@owenatgov
Copy link
Contributor

@jbuller
Copy link

jbuller commented Feb 15, 2022

All those voice commands either take quite a bit of time or require saying "Hide" out loud.
Previously I suggested also providing a secondary innocuous command.

Nevertheless whatever you publish now will be a great step forward and of course further development can then be done.

@christopherthomasdesign
Copy link
Member

Chatted with the designer who worked on a hide this page component for Women's Aid. It was a long time ago and they were only partly on the project so couldn't remember loads, but a couple of interesting bits:

we didn’t test with assistive tech. We were focussed on mobile due to the user group we were working with and one thing we found in UR was that the exit button became basically redundant because people have much faster ways of closing pages/apps when on mobile (like the physical buttons on the phone)

A very fair point, though I don't think this amounts to anything like an argument against showing the button on mobile.

One interesting thing the tech person implemented was that the button left the site on the original tab but also opened a new tab and went directly to that tab, this meant that someone could not hit back on the browser because it was a fresh tab.

Which sounds very similar to what we're proposing!

@owenatgov
Copy link
Contributor

owenatgov commented Mar 14, 2022

Hide this page component proposal - 14/03/2022

The current proposal is pending the gathering of existing research from contributors as well as a round of usability and accessibility user testing.

You can see a current draft implementation of the component here (from #2079).

Current guidance plan

We're gonna request that teams set up 2 buttons on the page, one as a hidden "skip link" variant underneath the actual skip link on the page and one one the page itself, positioned under the main and visually on the right of the content (on mobile this would float at the bottom of the viewport above everything else). We're additionally going to request folks add guidance to the page saying something along the lines of "this page includes a hide this page button. You can use it by clicking xyz or using the xyz keyboard shortcut etc etc".

The reason we've got 2 is for keyboard and screen reader users so they can more easily reach a button from anywhere in the markup they are. The guidance is so that we're communicating to the user that the button is on the page and how it works without making the button obvious to observers, an indication of the trade off between observer and user visibility (figurative term) which has been central to the development of this component.

Current component flow for users

  • When a user presses the button, a new tab will be opened, currently preset to BBC weather and the previous tab will change to a different URL, currently preset to google.com
  • If a user checks their history, the "risk" page will have a different title, currently preset to a covid title
  • If the user goes to the previous tab (google) and clicks back, they can return to the page they were trying to hide/escape and continue their journey

Outliers

  • A keyboard shortcut has yet to be implemented. We will be discussing this with key contributors before continuing investigation and potentially putting this to user research.
  • We have yet to write a draft for what content we want the user to see explaining how hide this page works.
  • We haven't investigated in detail the defaults for the escape pages (current BBC weather and the google homepage) and the fake page title placed in the browser history (currently the govuk coronavirus landing page title).

@kellylee-gds kellylee-gds changed the title Publish Hide this page component Publish Exit this Page component Dec 13, 2022
@owenatgov owenatgov added this to the 5.0 milestone Jun 2, 2023
@36degrees 36degrees modified the milestones: v5.0, v4.7.0 Jun 19, 2023
@owenatgov owenatgov removed this from the v4.7.0 milestone Jul 7, 2023
@kellylee-gds
Copy link
Contributor

Shipped on 6 July 2023. Next epic #2950

@kellylee-gds kellylee-gds added main epic and removed epic Epics are used in planning project boards to group related stories labels Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants