# 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](https://github.com/makeup/makeup-js) - 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.

### Common Behaviour

* [makeup-next-id](https://github.com/makeup-js/makeup-next-id)
* [makeup-key-emitter](https://github.com/makeup-js/makeup-key-emitter)
* [makeup-navigation-emitter](https://github.com/makeup-js/makeup-navigation-emitter)
* [makeup-active-descendant](https://github.com/makeup-js/makeup-active-descendant)
* [makeup-roving-tabindex](https://github.com/makeup-js/makeup-roving-tabindex)
* [makeup-focusables](https://github.com/makeup-js/makeup-focusables)
* [makeup-keyboard-trap](https://github.com/makeup-js/makeup-keyboard-trap)
* [makeup-screenreader-trap](https://github.com/makeup-js/makeup-screenreader-trap)
* [makeup-expander](https://github.com/makeup-js/makeup-expander)
* [makeup-prevent-scroll-keys](https://github.com/makeup-js/makeup-prevent-scroll-keys)

### UI Components

* [makeup-combobox](https://github.com/makeup/makeup-js/tree/master/packages/makeup-combobox)
* [makeup-listbox](https://github.com/makeup/makeup-js/tree/master/packages/makeup-listbox)
* [makeup-listbox-button](https://github.com/makeup/makeup-js/tree/master/packages/makeup-listbox-button)
* [makeup-switch](https://github.com/makeup/makeup-js/tree/master/packages/makeup-switch)

## CSS Classes

```css
/* clip element visibility, making it accessible to screen reader only */
.clipped {
    position: absolute !important;
    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ebay.gitbook.io/mindpatterns/appendix/utils.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
