Git Product home page Git Product logo

jquery-accessible-carrousel-aria's People

Contributors

harrinsonmb avatar nico3333fr avatar stephane-tessier avatar zomars avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jquery-accessible-carrousel-aria's Issues

When there are multiple instances of the carrousel on one page, the logic for hiding controls when a carrousel only contains one item fails

When there are multiple instances of the carrousel on one page, the logic for hiding controls when a carrousel only contains one item fails.

I suspect the line:

if ($carrousel_container.length && $carrousel_content.length > 1)

is incorrect or insufficient because carrousel_content.length is checked on the entire document instead of on a per carrousel-instance basis. When you have multiple carrousel instances in a document, the carrousel_content.length will always be > 1.

Raise unrecognized expression error when using in single web app

Issue

A lot of the single web app use /#/ as there route manager and control their pages, however, right now the plugin will takes the window.location.hash as value and try to replace anchor tag #, so it will try to get hash like this #/index and transfer into this /index. this is causing the issue since the / is not removed, jquery can not select element properly and raise systax error.

vendor.js:1472 Uncaught Error: Syntax error, unrecognized expression: #/index.carrousel__content
    at Function.Sizzle.error (vendor.js:1472)
    at tokenize (vendor.js:2086)
    ...

Suggestion

Use another way to process the hash value.

Update demo code

For more optimization, like SEO, update demo code

<div class="carrousel__content">
    <h3>A first panel</h3>
    <p>Here the content.</p>
</div>

by

<section class="carrousel__content">
    <header><h3>A first panel</h3><header>
    <p>Here the content.</p>
</section>

"data-carrousel-btn-previous-text" accepte le code HTML mais ce code est restitué dans le "title"

Salut,

J'ai découvert avec joie qu'on pouvait mettre du code HTML dans l'attribut "data-carrousel-btn-previous-text" parce que j'utilise une police d'icônes. Exemple :
<span class='icon-circle-arrow' aria-hidden='true'></span><span class='visually-hidden'>Show previous panel</span>

Par contre, je vois que dans l'attribut "title" du bouton, les balises sont présentes aussi.
Est-ce qu'il est possible de supprimer les balises HTML lors de l'injection dans le "title" ?

Merci pour ton aide !

Bug on controllers generation

If you're using data-carrousel-existing-hx="hx" and the existing hx has some html inside,

<h2><a href="#" class="blue">blablabl </a></h2>

the control generation will fail miserably using $carrousel_span_text_final = $this.find($carrousel_existing_hx).html();

It should be remplaced for .text() method.

It should not run automaticaly

A better design would be to make it a real jQuery plygin that takes a selector to enable (and could takes some options for configuration

Prev/next buttons

Suggested by @goetsu : when you use next/prev buttons, instead on going back to control list, go on the content tab (better for keyboard experience)

ios focus with next / prev button

sur ios après activation des boutons next / prev le focus reste sur le bouton au lieu d'aller sur le contenu mis à jour. A mon avis c'est encore le bug de gestion du focus qui est en cause. Je suppose qu'il faut donc ajouter le setTimeout 0 pour que cela fonctionne

$activated is not defined

I'm getting the following error:

Uncaught ReferenceError: $activated is not defined

And it points me to this line: jquery-accessible-carrousel-aria.js:464

I'm using out of the box jQuery v2.2.4

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.