Utilities
In an effort to make the example code more concise and readable, several JavaScript and CSS utilites were used in the creation of the examples.
Much of the common accessibility logic in our MIND Pattern examples comes courtesy of MakeupJS - a suite of vanilla, headless UI JavaScript modules - tailored specifically for building accessible user interfaces in a frontend framework agnostic manner. For example, implementing a keyboard roving tab index or dialog window modality.
Last updated: May 14th 2021

Common Behaviour

UI Components

CSS Classes

1
/* clip element visibility, making it accessible to screen reader only */
2
.clipped {
3
position: absolute !important;
4
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
5
clip: rect(1px, 1px, 1px, 1px);
6
padding: 0 !important;
7
border: 0 !important;
8
height: 1px !important;
9
width: 1px !important;
10
overflow: hidden;
11
}
Copied!
Last modified 6mo ago