Skip to content

Commit b65a9c0

Browse files
authored
Merge pull request #3 from morkro/release/0.3.0
Release 0.3.0
2 parents b8d34bd + 33e531d commit b65a9c0

File tree

6 files changed

+899
-738
lines changed

6 files changed

+899
-738
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Vue A11yDialog
22

3-
This is a Vue.js wrapper component for [`a11y-dialog@5.1.0`](https://github.com/edenspiekermann/a11y-dialog) ([**demo**](https://codesandbox.io/s/rj20wr1kpp)).
3+
This is a Vue.js wrapper component for [`a11y-dialog@5.2.0`](https://github.com/edenspiekermann/a11y-dialog) ([**demo**](https://codesandbox.io/s/rj20wr1kpp)).
44

55
- [Install](#install)
66
- [Usage](#usage)
@@ -164,6 +164,19 @@ export default {
164164
</a11y-dialog>
165165
```
166166

167+
### `role`
168+
- **Property**: `role`
169+
- **Type**: `String`
170+
- **Required**: `false`
171+
- **Default**: `dialog`
172+
- **Description**: The `role` attribute of the dialog element, either `dialog` (default) or `alertdialog` to make it a modal (preventing closing on click outside of <kbd>ESC</kbd> key).
173+
- **Usage**:
174+
```html
175+
<a11y-dialog role="alertdialog">
176+
<!-- ... -->
177+
</a11y-dialog>
178+
```
179+
167180
## Events
168181

169182
### `dialog-ref`

dist/vue-a11y-dialog.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)