Giter Club home page Giter Club logo

silc-offcanvas's People

Contributors

nickrigby avatar

Watchers

 avatar  avatar  avatar

Forkers

anthonybarsotti

silc-offcanvas's Issues

Document how to "always have offcanvas"

Looks like this is set up for "off canvas items" to become visible at a certain breakpoint. But what if it should "always be off canvas"?

I see this in css:
@if strip-unit($silc-offcanvas--options--becomes-visible) > 0 {

Does that mean that we would need to set $silc-offcanvas--options--becomes-visible to 0, and it would "always be offcanvas"?

Close any open modals when another trigger is clicked

In your HTML demo:
<h2>Offcanvas</h2> <a class="silc-offcanvas__trigger" href="#silc-offcanvas-1">Trigger Offcanvas</a> <div class="silc-offcanvas" id="silc-offcanvas-1"> <a class="silc-offcanvas__trigger silc-offcanvas__trigger--close" href="#silc-offcanvas-1">Close</a> <p>This is off canvas</p> </div>

    `<h2>Offcanvas modal</h2>
    <a class="silc-offcanvas__trigger silc-offcanvas__trigger--modal" href="#silc-offcanvas-2">Trigger Offcanvas modal</a>
    <div class="silc-offcanvas silc-offcanvas--modal" id="silc-offcanvas-2">
        <div class="silc-offcanvas__inner">
            <a class="silc-offcanvas__trigger silc-offcanvas__trigger--modal" href="#silc-offcanvas-2">Close</a>
            <p>This is modal content</p>
        </div>
    </div>`

If one offcanvas is open, the other will not fire. Granted this may be a small use case, but is confusing when looking at the demo. Should clicking any .silc-offcanvas__trigger close any open off canvases, then fire perhaps? Or can we simply add a dflt background color to offcanvas to make it clearer that things are "not clickable"?

Add screenreader only text?

Often this is used with icons/etc that then throw WAVE errors. There may already be global class for SR only text in silc core, but could we at least document/add that to the examples? I have had to manually add those in at least 3 recent projects.

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.