Skip to content

Commit 9a14dd0

Browse files
committed
add: wai-aria category and alertdialog snippet
1 parent fbb809e commit 9a14dd0

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ You can see all installed snippets in `Tools > Snippets...`, in the sublime text
1515

1616
- [HTML - h*](snippets/html/)
1717
- [Microdata - hm.*](snippets/html/schema/microdata)
18+
- [WAI-ARIA - hw.*](snippets/html/wai-aria)
1819
- [CSS - c*](snippets/css/)
1920
- [JavaScript - j*](snippets/js/vanilla)
2021
- [BDD - b*](snippets/js/bdd)

messages/install.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ You can see all installed snippets in Tools > Snippets... .
66
Snippets:
77
- HTML
88
- Microdata
9+
- WAI-ARIA
910
- CSS
1011
- JavaScript
1112
- BDD

snippets/html/wai-aria/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
# HTML Snippets
3+
4+
## WAI-ARIA
5+
6+
Prefix `hw.*`
7+
8+
### [hw.alertdialog] alertdialog
9+
10+
```html
11+
<div role="alertdialog" tabindex="0" aria-hidden="${1:true}" aria-labelledby="${2}" aria-describedby="${3}">
12+
<h3 id="${2}"></h3>
13+
<p id="${3}"></p>
14+
<input type="button">
15+
</div>
16+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<snippet>
2+
<content><![CDATA[
3+
<div role="alertdialog" tabindex="0" aria-hidden="${1:true}" aria-labelledby="${2}" aria-describedby="${3}">
4+
<h3 id="${2}"></h3>
5+
<p id="${3}"></p>
6+
<input type="button">
7+
</div>
8+
]]></content>
9+
<tabTrigger>hw.alertdialog</tabTrigger>
10+
<description>hw - Alert Dialog</description>
11+
</snippet>

0 commit comments

Comments
 (0)