Code Monkey home page Code Monkey logo

Comments (4)

tim-yao avatar tim-yao commented on May 30, 2024

Thanks @lmounsey for your suggestion! We are using https://github.com/simplesmiler/vue-focus in Ripple, that means we have the focus directive in use already.

For focusing on h1 when a page load, unfortunately it is not how we are doing at SDP site. Keyboard nav is only on link, button and clickable elements, however our h1 is not a link. Our keyboard nav order is from top to bottom, with the first item is skip to main content option which can jump to the page main content directly.

Any reason your project need go to h1?

from ripple.

lmounsey avatar lmounsey commented on May 30, 2024

Hi @tim-yao

Just to clear up, it should not focus on h1 on first page load - sorry if my code is a bit misleading, it could possibly be cleaned up with detecting process.client instead.

I feel though it should move focus when navigating between pages in nuxt - for example, if I use VoiceOver on https://www.vic.gov.au and click a footer link, the focus still stays in the footer.

Let me know if you want to chat more to talk through some possible solutions

from ripple.

tim-yao avatar tim-yao commented on May 30, 2024

@lmounsey Yes, the footer link case make sense to me. I will raise an issue to UX/BA for discovering this requirement. It may take some time. If it's urgent in your project, please use SDP support portal to ask for support. Thanks!

from ripple.

tim-yao avatar tim-yao commented on May 30, 2024

This will be look at in https://digital-engagement.atlassian.net/browse/SDPA-3251

from ripple.

Related Issues (20)

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.