Giter VIP home page Giter VIP logo

Comments (7)

nico3333fr avatar nico3333fr commented on July 28, 2024

Hello,

it can already be set up, at the beginning of the script:

    var attr_control = 'data-controls',
        attr_expanded = 'aria-expanded',
        attr_labelledby = 'data-labelledby',
        attr_hidden = 'data-hidden',

However, for "practical reasons" (especially on voice over, to avoid application mode if I remember well - ping @goetsu you will probably be able to explain why), it has been decided not to follow exactly the DP.

;)

from jquery-accessible-hide-show-aria.

juliemoynat avatar juliemoynat commented on July 28, 2024

I understand the reason but another accessibility expert, in an audit, told me to add "aria-controls", so...
I don't like to modify a library but if we have to... :-)

Thank you for your answer.

from jquery-accessible-hide-show-aria.

goetsu avatar goetsu commented on July 28, 2024

@juliemoynat you don't have to modify it because it's already something you can choose to add or not in the configuration ;)
@nico3333fr yes you remember well

from jquery-accessible-hide-show-aria.

nico3333fr avatar nico3333fr commented on July 28, 2024

In fact, if I remember well, for Voice over: if it detects certains ARIA attributes, it switches to application mode, and this mode implies more complicated keyboard combinations for the user.

As this component should be simple, this is why we set it up like mentionned before: it works without being more complicated for the users (difference between "accessibilité de terrain" - don't know how to say it in english and "accessibilité des référentiels").

However, your a11y expert and mine's are not wrong, it depends on the environment of the project and the point of view.

In a near future, I will rewrite this plugin in the same style of coding that the accordion one, allowing to pass a config on the call, and it should fix this issue without updating the code of the plugin.

from jquery-accessible-hide-show-aria.

juliemoynat avatar juliemoynat commented on July 28, 2024

Ok, so I was not so wrong about the fact that we have to modify plugin's code. Adding a variable will not just work, so we have to modify several lines of code (or maybe I'm wrong about the way I should do it...?).

from jquery-accessible-hide-show-aria.

nico3333fr avatar nico3333fr commented on July 28, 2024

At the beginning of the script, you need to replace

var attr_control = 'data-controls',

by

var attr_control = 'aria-controls',

that's all ;)

from jquery-accessible-hide-show-aria.

juliemoynat avatar juliemoynat commented on July 28, 2024

Ok!! So cool :-)
Thank you

from jquery-accessible-hide-show-aria.

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.