An accessible modal window!
For more details on the accessibility of modal windows:
Launchy! is very easy to install and use:
Wherever you want to have a Launchy! control + window appear in your HTML content, simply wrap your content with a
<div> and add the
This content will appear in the modal window.
data-launchy-- Attribute is required but the value can be anything
data-launchy-text-- This is the text that will be output to the launcher control
data-launchy-title-- The text which appears in the heading of the modal window, recommended for greater a11y context 👍
Launchy! has many CSS classes available on its generated elements for custom styles. Check out the style.scss file for class names and an example on how you might want to style your modal windows!
For any site, grab the
/dist/launchy.js file and include it at the bottom of your HTML page/template:
Launchy! will run automatically and generate all the modal windows for you!
Launchy! is also available as an npm package!
npm i launchy-modal-window
launchy.js directly in your app or site template.
See the CONTRIBUTING file.
See the LICENSE file.