Skip to content

Commit fca2bc6

Browse files
author
Melanie Richards
authored
[Popup] Fix spelling of delegatesfocus attr
1 parent 52fe87f commit fca2bc6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Popup/explainer.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ We propose a new HTML element called `popup`. This new element can be used for a
5151

5252
* A `show()` JavaScript method, for invoking the `popup`. When visible, the `popup` will have a default set of behaviors as well as a default positioning scheme.
5353
* Logic for an optional `autofocus` attribute which enables moving focus to the `popup` or to a descendent.
54-
* An optional `delegatefocus` attribute, for passing focus to descendants.
54+
* An optional `delegatesfocus` attribute, for passing focus to descendants.
5555
* An optional `anchor` attribute, which both relates the `popup` to an activating element and can be used in a separately-proposed, CSS-based anchor positioning scheme.
5656
* A `hide()` method for hiding the `popup`
5757
* [Light dismiss](#light-dismiss) behaviors.
@@ -121,12 +121,12 @@ To move focus to a descendent upon invocation, place the attribute on that desce
121121

122122
These `autofocus` rules will be processed each time `show` is called, as opposed to initial document load.
123123

124-
### `delegatefocus`
124+
### `delegatesfocus`
125125

126-
Some authors may need to automatically focus the popup's first focusable descendent, and may not wish to write script to determine at runtime which element that is. In such cases the `delegatefocus` attribute can be applied to the popup:
126+
Some authors may need to automatically focus the popup's first focusable descendent, and may not wish to write script to determine at runtime which element that is. In such cases the `delegatesfocus` attribute can be applied to the popup:
127127

128128
```html
129-
<popup delegatefocus>
129+
<popup delegatesfocus>
130130
<p>I am not a focusable element.</p>
131131
<p>Nor am I.</p>
132132
<button>I will be focused whenever the popup becomes focused.</button>

0 commit comments

Comments
 (0)