Coder Social home page Coder Social logo

hannalaakso / accessible-timeout-warning Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 8.0 16.75 MB

Prototype! Timeout warning with accessibility built in. Customisable and extendable.

Home Page: https://github.com/alphagov/govuk-design-system-backlog/issues/104#issuecomment-394620328

License: MIT License

JavaScript 50.92% CSS 20.62% HTML 28.19% Shell 0.28%

accessible-timeout-warning's People

Contributors

36degrees avatar abbott567 avatar alextea avatar andrewvos avatar ashimali avatar davidslv avatar davidwoodward42 avatar edwardhorsford avatar fofr avatar garyboyle avatar gemmaleigh avatar glenjamin avatar greenkeeper[bot] avatar hannalaakso avatar htmlandbacon avatar joelanman avatar johanstrandell avatar nickcolley avatar purplebooth avatar pwright08 avatar quis avatar rivalee avatar robinwhittleton avatar sanjaypoyzer avatar selfthinker avatar tijmenb avatar timpaul avatar tombye avatar tsmorgan avatar tvararu avatar

Stargazers

 avatar

accessible-timeout-warning's Issues

Improve the server and client interaction documentation

We currently have some draft guidance (see "How client side and server could potentially communicate") for how the component should communicate with the server in case of an impending timeout.

We've also put some placeholders in the script for where these points of communication might happen.

We should look to improve the documentation for this, ideally on the basis of different server configurations.

There probably won't ever be definite guidance for this as the service team should consider what works best for their set up. However some examples would be really useful.

Update frequency

The frequency of the live region updates makes it difficult to use a screen reader. Suggest that the visible time updates are not included in the live region, but instead a hidden live region is created that updates less frequently (perhaps every 15 or 30 seconds).

Test with latest versions of iOS VoiceOver to see if numbers in strings are read out correctly

Background

The component changes the content of at-timer with a countdown message at intervals.

Issue

When the component was tested on (See "Accessibility") VoiceOver + Safari + iOS 10.3.2 + iPhone 5s, there were issues with getting VoiceOver to read out numbers in longer strings when the content of at-timer changed.

For instance "We will reset your application if you do not respond in 2 minutes 30 seconds" was read out as "We will reset your application if you do not respond in".

To get around this we experimented with converting the numbers to letters at which point iOS read the message out correctly.

Next steps

This behaviour in iOS feels like an anomaly and was found on a c.2017 version of iOS so we should experiment removing the conversion to letters and test the component on the last couple of iOS versions to see if the problem can be replicated there.

If the problem can't be replicated we should probably just consider removing the code that converts numbers to letters. If there is an issue then bugs should be filed with browser vendors where relevant.

Add automated tests

Since the project now forks govuk-frontend we should add unit and integration tests for the component following the conventions of govuk-frontend.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.