Giter Site home page Giter Site logo

accessible-modal-dialog's People

Contributors

gdkraus 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

accessible-modal-dialog's Issues

Problem with Safari

Hello,
When trying your demo on safari browser, using the tab key let you get out of the modal box.
From the third input field, pressing tab sets the focus to the address bar instead of the submit button.
Thank you.

New and improved script version

Hey I took the liberty to make a new version for the script including the following features:

  • no more jQuery dependency πŸŽ‰
  • possibility to have several different modals on the page
  • DOM API for openers (data-show-modal="modal-id") / closers (data-hide-modal)
  • JS API to manually show and hide the modal (modal.show(), modal.hide())
  • JS API to know whether it’s hidden or shown (modal.shown)
  • Addition of [tabindex]:not([value="-1"]) to focusable elements
  • Cleaner code

Find the code here: https://github.com/edenspiekermann/accessible-modal-dialog.
Find a demo here: http://codepen.io/HugoGiraudel/pen/jWQqeq?editors=0100.

Would you like me to submit a PR?

lightbox content not visible when longer than viewport

because of the fixed positioning parts of the lightbox content are currently not visible if the viewport is too small. a potential fix would be to set the lightbox height relative to the page height (with some margins) and make the lightbox-content scrollable.

dialog comes up zoomed on ios (might be apple issue)

The initial demo page is normal unzoomed.

1 unzoomed

When the dialog is opened, focus is on "First Name" and the dialog is zoomed. I'm not sure if this is a normal Apple thing when focus is put on an input field.

2 zoomed dialog

This is what I expected it to look like

3 expected result

I'm using an iphone 6s with ios 12.4.1. It's not a recent behavior for this iOS. It's been doing this for some time. Was just curious if it's an apple thing or if the dialog is somehow causing it. Would like to know if it happens for others.

Go full screen on smaller screens as a responsive solution

On say a iPhone 4 sized screen the demo modal is not fully usable. It's centred and fixed and some of it is below the viewport.

I've found that the best solution on smaller screens is to go full screen and allow scrolling of the modal as required. Or at a minimum full width and max height 100% and allow scrolling.

Missing names of sections in Documentation

Hi

I was just going through documentation where the names of the three sections is missing.It is given that there are three sections in the example. But the names of the sections are not given.

Please find the screenshot attached. Please mention these names.

missing section description

Regards
VG

Multiple Modals?

How difficult would it be to make this support multiple modals? I was looking over the JS and realized it is beyond my capabilities.

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.