--- layout: doc-api.html tags: argument-list, svg --- # ally.element.disabled Makes an element inert, i.e. not editable. ## Description HTML knows the [`:disabled`](https://developer.mozilla.org/en-US/docs/Web/CSS/%3Adisabled) state for form elements, but lacks something similar for all the other interactive elements. This utility makes a form of this convenient state available to every element. Elements that were made inert by [`ally.element.disabled`](#allyelementdisabled) can be identified in the DOM by the attribute `[data-ally-disabled="true"]` to align with styling of other `:disabled` elements. The following things are done in order to make an element inert: * adding `tabindex="-1"` attribute to remove element from document's focus navigation sequence * adding the `focusable="false"` attribute on `SVGElement` * removing the `controls` attribute from `