clarify comments

This commit is contained in:
Cory LaViska
2021-06-30 20:03:34 -04:00
parent 1e7567fb8f
commit f124c8d81b
2 changed files with 2 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ To keep the dialog open in such cases, you can cancel the `sl-request-close` eve
### Customizing Initial Focus
By default, the dialog's panel will gain focus when opened. This allows the first tab press to focus on the first tabbable element within the dialog. To set focus on a different element, listen for the `sl-initial-focus` event.
By default, the dialog's panel will gain focus when opened. This allows the first tab press to focus on the first tabbable element within the dialog. To set focus on a different element, listen for and cancel the `sl-initial-focus` event.
```html preview
<sl-dialog label="Dialog" class="dialog-focus">

View File

@@ -193,7 +193,7 @@ To keep the drawer open in such cases, you can cancel the `sl-request-close` eve
### Customizing Initial Focus
By default, the drawer's panel will gain focus when opened. This allows the first tab press to focus on the first tabbable element within the drawer. To set focus on a different element, listen for the `sl-initial-focus` event.
By default, the drawer's panel will gain focus when opened. This allows the first tab press to focus on the first tabbable element within the drawer. To set focus on a different element, listen for and cancel the `sl-initial-focus` event.
```html preview
<sl-drawer label="Drawer" class="drawer-focus">