You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/glossary/disabled.md
+28-1Lines changed: 28 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,4 +3,31 @@ title: Disabled
3
3
key: disabled
4
4
---
5
5
6
-
TODO
6
+
An element that is normally [perceivable][] and [operable][], but has been rendered [inoperable][operable] either temporarily or permanently, is considered disabled. While there exists several techniques through which elements can be disabled, the most typical are:
7
+
8
+
1. The [`disabled`][disabled] attribute. The presence of this attribute, regardless of its value, either
9
+
10
+
- on a [`button`][button], [`input`][input], [`select`][select], [`textarea`][textarea], or [form-associated custom element][]; or
11
+
- on a [`fieldset`][fieldset] element
12
+
13
+
will disable the element itself if it is not a [`fieldset`][fieldset] or, if it is, will disable any [descendants][descendant] of the element, excluding those that are [descendants][descendant] of the first [`legend`][legend][child][] of the element.
14
+
15
+
**Note:** When the [`disabled`][disabled] attribute is specified on a [`fieldset`][fieldset] element, [shadow-including descendants][shadow-including descendant] are **not** disabled.
16
+
17
+
2. The [`aria-disabled`][aria-disabled] attribute. The presence of this attribute with a value of `true` will semantically disable an element and its [focusable][][shadow-including descendants][shadow-including descendant].
0 commit comments