Giter VIP home page Giter VIP logo

van11y-accessible-hide-show-aria's Issues

Handle a dropdown variant

Hi there,

It would be great to mention and demonstrate that this script might be used for dropdowns :)
As far as I understand, it should only be a style variant.

Thanks :)

Edge - van11y 'AccessibleHideShowAria' is not defined

Hi!
I'm using this script on a new project, and I faced an issue on Edge : It's not working there is an error in the console.

By going to the demo page with Edge :
https://van11y.net/downloads/hide-show/demo/index.html

0: van11y 'AccessibleHideShowAria' is not defined.

Updated Windows 10
Edge 44.18362
EdgeHTML 18.18

EDIT :
In my project (Gulp + Webpack with Babel etc.) I include the es6 file this is why I have the error, I think you also use this one on the demo.
By importing the simple .js file it's okay.

Allow reusing an existing button

Hi,

I'd like to implement this script, but my page already has a button with specific classes on it. How can I initialize the script and make it use the existing button, instead of creating a new button in a h* element?

Thanks

ARIA is insufficient and fails screenreaders

Your examples look nice, but they are failing the point of ARIA attributes completely. You link to the excellent inspiration, but the resulting markup is adding aria-expanded on the button instead of the expanded field. You're also not hiding the expandable in any way from screenreaders.

Current output code

<h2 class="js-expandmore" data-hideshow-prefix-class="animated">
  <button class="animated-expandmore__button js-expandmore-button" data-controls="expand_1ugacpb3ta" aria-expanded="true" id="label_expand_1ugacpb3ta" type="button"><span class="animated-expandmore__symbol" aria-hidden="true"></span>Example animated (opened by default)</button>
</h2>
<div class="js-to_expand animated-expandmore__to_expand" data-labelledby="label_expand_1ugacpb3ta" id="expand_1ugacpb3ta">
    <p>Yes, it rocks.</p>
 </div>

Main key missing from package.json

A main entry is missing from package.json:

missing main: https://github.com/nico3333fr/van11y-accessible-hide-show-aria/blob/master/package.json

has main: https://github.com/nico3333fr/van11y-accessible-modal-window-aria/blob/7e5d7b90c41d4990621e514b1669bf724fc68806/package.json#L5

The exclusion of the main key is causing webpack to throw an error: cannot resolve module van11y-accessible-hide-show-aria.

Thank you for all your work on this wonderful package.
Take care

Rewamp builds

TODO:

  • scripts should work with webpack/gulp (with or without autoload),

  • and "normal" guy which is not strong at JS should be able to take a built file (with or without autoload) and it works on a "classic" site.

  • bonus: if we can move to gulp v4, this will be puuuurfect.

ping @dhoko

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.