{"id":13438014,"url":"https://github.com/ghosh/micromodal","last_synced_at":"2025-03-05T04:09:16.592Z","repository":{"id":39954069,"uuid":"99948385","full_name":"ghosh/Micromodal","owner":"ghosh","description":"⭕   Tiny javascript library for creating accessible modal dialogs","archived":false,"fork":false,"pushed_at":"2023-10-27T04:46:03.000Z","size":3158,"stargazers_count":3533,"open_issues_count":67,"forks_count":228,"subscribers_count":36,"default_branch":"master","last_synced_at":"2024-10-29T15:04:37.408Z","etag":null,"topics":["accessibility","javascript","modal","modal-dialogs","vanilla-javascript"],"latest_commit_sha":null,"homepage":"https://micromodal.now.sh/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghosh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-08-10T17:24:03.000Z","updated_at":"2024-10-27T05:36:00.000Z","dependencies_parsed_at":"2023-02-06T11:16:50.087Z","dependency_job_id":"8633bc1f-f524-4404-9d4f-6b719bf3cbbd","html_url":"https://github.com/ghosh/Micromodal","commit_stats":{"total_commits":444,"total_committers":38,"mean_commits":11.68421052631579,"dds":"0.32432432432432434","last_synced_commit":"2a316150d12b3f3a0540762ee77dcb7247c6518a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosh%2FMicromodal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosh%2FMicromodal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosh%2FMicromodal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosh%2FMicromodal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghosh","download_url":"https://codeload.github.com/ghosh/Micromodal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241960879,"owners_count":20049343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accessibility","javascript","modal","modal-dialogs","vanilla-javascript"],"created_at":"2024-07-31T03:01:02.170Z","updated_at":"2025-03-05T04:09:16.565Z","avatar_url":"https://github.com/ghosh.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Libraries"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://www.dropbox.com/s/tbaooyi4yh8pbi7/logo.png?raw=1\" width=\"100px\"/\u003e\n\u003c/p\u003e\n\u003ch3 align=\"center\"\u003e\n  Micromodal.js\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/made%20with-love-E760A4.svg\" alt=\"Made with love\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\" rel=\"noopener\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"License\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/micromodal\" target=\"_blank\" rel=\"noopener\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/micromodal.svg\" alt=\"Package version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/ghosh/micromodal\" target=\"_blank\" rel=\"noopener\"\u003e\n    \u003cimg src=\"https://api.travis-ci.org/ghosh/micromodal.svg\" alt=\"Build Status\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Tiny, dependency-free javascript library for creating accessible modal dialogs\n\u003c/p\u003e\n\n---\n\n\u003cimg src=\"https://www.dropbox.com/s/8g7fr091tk8o62j/micromodal.gif?raw=1\" width=\"100%\"\u003e\n\nThe 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.\n\n**[Demo and documentation](https://micromodal.now.sh/)**\n\n\u0026nbsp;\n\n## Features\n✔ Toggles relevant aria attributes on open and close\n\n✔ Closes modal on overlay click\n\n✔ Closes modal on pressing the `esc` key\n\n✔ Traps tab focus within the modal\n\n✔ Focuses on the first focusable element within the modal\n\n✔ Retains the focused element state after closing the modal\n\n\u0026nbsp;\n\n## Installation\n\n**via npm**\n```shell\nnpm install micromodal --save\n```\n\n**via yarn**\n```shell\nyarn add micromodal\n```\n\n**via CDN direct link**\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/micromodal/dist/micromodal.min.js\"\u003e\u003c/script\u003e\n\u003c!-- or --\u003e\n\u003cscript src=\"https://unpkg.com/micromodal/dist/micromodal.min.js\"\u003e\u003c/script\u003e\n```\n\n**direct download**\n```shell\ncurl -O -L https://unpkg.com/micromodal/dist/micromodal.min.js\n```\n\n\u0026nbsp;\n\n## IE 11 and below\n\nPlease use this pollyfill suggested [here](https://github.com/ghosh/Micromodal/issues/49#issuecomment-424213347).\n\n\u0026nbsp;\n\n## Changelog\n\nFind the latest changelog [here](https://github.com/ghosh/micromodal/blob/master/CHANGELOG.md).\n\n\u0026nbsp;\n\n## Contributing\n\nWe 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.\n\nMicromodal follows the [standardjs](https://standardjs.com/) coding standard and is part of our `package.json` file. It will help us to maintain consistency in the code base.\n\n#### Development setup\n1. Clone Github repo `$ git clone https://github.com/ghosh/micromodal.git`\n2. Install `yarn` package manager (Read [installation guide](https://yarnpkg.com/en/docs/install#mac-tab))\n3. Run `yarn install` in the root folder to install all dependencies\n4. Run `yarn dev` to start a dev server. This serves the example directory and live reloads when any files are changed\n5. [Optional] Run `yarn build` to build the files for distribution. This is run automatically as a pre-commit hook as well.\n6. Send us pull request and chill\n\n\u0026nbsp;\n\n## Licensing\nThis project is licensed under [MIT license](https://opensource.org/licenses/MIT).\n\n\u0026nbsp;\n## Related\n- [Microtip](https://github.com/ghosh/microtip) - Modern, lightweight, accessible css tooltip library. Just 1kb.\n\n\u0026nbsp;\n\n## Contact\nYou can mention us on Twitter for any questions, suggestions or just send us funny GIF. We ♥️ GIFs.\n\n#### Tweet some love\n[Tweet](https://twitter.com/intent/tweet?url=https%3A%2F%2Fgoo.gl%2FsEgnBZ\u0026text=Make%20your%20modal%20dialogs%20accessible%20to%20all%20using%20Micromodal.js%2C%20a%20tiny%20library%20for%20big%20change.\u0026hashtags=a11y \"Tweet about Micromodal\") about Micromodal and help us to spread the message about the importance of Web accessibility and Inclusive design.\n\n\u0026nbsp;\n\n## Created and maintained by\n\nIndrashish Ghosh – [@_ighosh](https://twitter.com/_ighosh) 🇮🇳\n\nKalpesh Singh - [@knowkalpesh](https://twitter.com/knowkalpesh) 🇮🇳\n\nDarpan Kakadia - [@kakadiadarpan](https://twitter.com/kakadiadarpan) 🇩🇪\n\nContributors - [list](https://github.com/ghosh/micromodal/graphs/contributors) 🌐\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghosh%2Fmicromodal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghosh%2Fmicromodal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghosh%2Fmicromodal/lists"}