GithubHelp home page GithubHelp logo

Comments (6)

selfthinker avatar selfthinker commented on July 18, 2024 1

I looked at all the linked pages but can only see one value (aria-live="assertive"). Has this been fixed? Only https://www.gov.uk/government/statistics doesn't have any aria-live at all. (At least I couldn't find it.)

But having briefly looked at the implementation now, I would improve two other things:

  1. What is wrapped in the div with the aria-live includes the number of results (in an h2), the facet tags and on some pages the "get email alerts" and "subscribe to feed" links. At least those links should not be announced to screen readers because they don’t change. (Actually, I assume the URL changes, but that won't be apparent to anyone, including screen reader users.) The facet tags can be up for debate if it makes sense for them to be announced, but I would suggest to only wrap the h2 (or add the aria-live directly to the h2).

  2. After filtering at least once, the h2 gets nested in another h2. That is invalid HTML.

from finder-frontend.

andysellick avatar andysellick commented on July 18, 2024 1

@kr8n3r yeah I think I remember spotting that and fixing it.

from finder-frontend.

kr8n3r avatar kr8n3r commented on July 18, 2024

@injms or @andysellick
I have point 2 from ⬆️ as a ticket but it seems that it has been fixed.
can either of you confirm or alternatively show how to replicate (in case i'm missing something)?

edit: possibly fixed here https://github.com/alphagov/finder-frontend/pull/1066/files#diff-32432de741de8d01ce8959f91547b1c5

from finder-frontend.

kr8n3r avatar kr8n3r commented on July 18, 2024

thanks Andy

from finder-frontend.

andysellick avatar andysellick commented on July 18, 2024

@tombye I believe we replaced all of the finders that this ticket is talking about (originally from whitehall, now rebuilt in finder-frontend) and the aria issue should have now been fixed. Can you confirm if this is the case?

from finder-frontend.

tombye avatar tombye commented on July 18, 2024

Looks like all of these now share the same implementation and the issues @selfthinker raised are now fixed so I'm marking this as resolved. Nice work! πŸ‘

from finder-frontend.

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.