All Projects → ghosh → Micromodal

ghosh / Micromodal

Licence: mit
⭕ Tiny javascript library for creating accessible modal dialogs

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to Micromodal

svelte-accessible-dialog
An accessible dialog component for Svelte apps
Stars: ✭ 24 (-99.2%)
Mutual labels:  accessibility, modal
react-micro-modal
Accessible, lightweight and configurable modal component with a11y-enabled.
Stars: ✭ 36 (-98.8%)
Mutual labels:  accessibility, modal
ngx-modal
Dynamic modal dialog for Angular
Stars: ✭ 54 (-98.2%)
Mutual labels:  modal, modal-dialogs
jpopup
Simple lightweight (<2kB) javascript popup modal plugin
Stars: ✭ 27 (-99.1%)
Mutual labels:  modal, vanilla-javascript
React Modal Video
Accessible React Modal Video Component
Stars: ✭ 105 (-96.51%)
Mutual labels:  accessibility, modal
bs5-utils
A JavaScript utility package for Bootstrap 5 components.
Stars: ✭ 26 (-99.14%)
Mutual labels:  modal, modal-dialogs
react-gallery-carousel
Mobile-friendly gallery carousel 🎠 with server side rendering, lazy loading, fullscreen, thumbnails, touch, mouse emulation, RTL, keyboard navigation and customisations.
Stars: ✭ 178 (-94.08%)
Mutual labels:  accessibility, modal
eins-modal
Simple to use modal / alert / dialog / popup. Created with pure JS. No javascript knowledge required! Works on every browser and device! IE9
Stars: ✭ 30 (-99%)
Mutual labels:  modal, vanilla-javascript
Launchy
Launchy: An Accessible Modal Window
Stars: ✭ 89 (-97.04%)
Mutual labels:  accessibility, modal
Lity
Lightweight, accessible and responsive lightbox.
Stars: ✭ 1,051 (-65.06%)
Mutual labels:  accessibility, modal
react-st-modal
Simple and flexible modal dialog component for React JS
Stars: ✭ 41 (-98.64%)
Mutual labels:  modal, modal-dialogs
Alertifyjs
A javascript framework for developing pretty browser dialogs and notifications.
Stars: ✭ 1,922 (-36.1%)
Mutual labels:  modal, modal-dialogs
jquery-accessible-modal-window-aria
jQuery simple and accessible modal window, using ARIA
Stars: ✭ 61 (-97.97%)
Mutual labels:  accessibility, modal
Autocomplete
Accessible autocomplete component for vanilla JavaScript and Vue.
Stars: ✭ 277 (-90.79%)
Mutual labels:  accessibility, vanilla-javascript
A11y Dialog
A very lightweight and flexible accessible modal dialog script.
Stars: ✭ 1,768 (-41.22%)
Mutual labels:  accessibility, modal
Baguettebox.js
⚡ Simple and easy to use lightbox script written in pure JavaScript
Stars: ✭ 2,252 (-25.13%)
Mutual labels:  modal, vanilla-javascript
Wai Tutorials
W3C WAI’s Web Accessibility Tutorials
Stars: ✭ 229 (-92.39%)
Mutual labels:  accessibility
Hnpwa Vanilla
Hacker News PWA implemented using no framework just javascript
Stars: ✭ 245 (-91.86%)
Mutual labels:  vanilla-javascript
Tints And Shades
🌈 Display tints and shades of a given hex color in 10% increments.
Stars: ✭ 228 (-92.42%)
Mutual labels:  accessibility
Modal Video
Stars: ✭ 224 (-92.55%)
Mutual labels:  accessibility

Micromodal.js

Made with love License Package version Build Status

Tiny, dependency-free javascript library for creating accessible modal dialogs


The aim of this library is to make modal dialogs accessible and easy to include in your project with minimum configuration. It's only ~1.8kb minified and gzipped - A tiny library for big change.

Demo and documentation

 

Features

Toggles relevant aria attributes on open and close

Closes modal on overlay click

Closes modal on pressing the esc key

Traps tab focus within the modal

Focuses on the first focusable element within the modal

Retains the focused element state after closing the modal

 

Installation

via npm

npm install micromodal --save

via yarn

yarn add micromodal

via CDN direct link

<script src="https://cdn.jsdelivr.net/npm/micromodal/dist/micromodal.min.js"></script>
<!-- or -->
<script src="https://unpkg.com/micromodal/dist/micromodal.min.js"></script>

direct download

curl -O -L https://unpkg.com/micromodal/dist/micromodal.min.js

 

IE 11 and below

Please use this pollyfill suggested here.

 

Changelog

Find the latest changelog here.

 

Contributing

We are always open and invite developers to contribute to Micromodal. We have kept the guidelines and process dead simple, so you invest more time in making modals accessible to all.

Micromodal follows the standardjs coding standard and is part of our package.json file. It will help us to maintain consistency in the code base.

Development setup

  1. Clone Github repo $ git clone https://github.com/ghosh/micromodal.git
  2. Install yarn package manager (Read installation guide)
  3. Run yarn install in the root folder to install all dependencies
  4. Run yarn dev to start a dev server. This serves the example directory and live reloads when any files are changed
  5. [Optional] Run yarn build to build the files for distribution. This is run automatically as a pre-commit hook as well.
  6. Send us pull request and chill

 

Licensing

This project is licensed under MIT license.

 

Related

  • Microtip - Modern, lightweight, accessible css tooltip library. Just 1kb.

 

Contact

You can mention us on Twitter for any questions, suggestions or just send us funny GIF. We ♥️ GIFs.

Tweet some love

Tweet about Micromodal and help us to spread the message about the importance of Web accessibility and Inclusive design.

 

Created and maintained by

Indrashish Ghosh – @_ighosh 🇮🇳

Kalpesh Singh - @knowkalpesh 🇮🇳

Darpan Kakadia - @kakadiadarpan 🇩🇪

Contributors - list 🌐

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].