levmyshkin/micromodal
Composer 安装命令:
composer require levmyshkin/micromodal
包简介
Fork from ghosh/Micromodal. Tiny, dependency-free javascript library for creating accessible modal dialogs.
README 文档
README
Micromodal.js
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.
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
- Clone Github repo
$ git clone https://github.com/ghosh/micromodal.git - Install
yarnpackage manager (Read installation guide) - Run
yarn installin the root folder to install all dependencies - Run
yarn devto start a dev server. This serves the example directory and live reloads when any files are changed - [Optional] Run
yarn buildto build the files for distribution. This is run automatically as a pre-commit hook as well. - 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 🌐
levmyshkin/micromodal 适用场景与选型建议
levmyshkin/micromodal 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 9.98k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 02 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「drupal」 「modal」 「popup」 「EBT」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 levmyshkin/micromodal 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 levmyshkin/micromodal 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 levmyshkin/micromodal 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Provides an add-on purchasable entity.
Drupal integration module for the Kalastatic prototyping and styleguide tool
Provides a base set of configuration and module dependencies for starting new Drupal projects.
Make Filament modals draggable.
A Filament form component that displays repeater items in a table with modal-based editing.
A Laravel Nova field. To create a modal for creating or viewing related HasMany records without leaving the index page
统计信息
- 总下载量: 9.98k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2023-02-28