Skip to content

Commit 4482f18

Browse files
committed
use heading tag for examples header
1 parent d9c1e9c commit 4482f18

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

docs/rules/accessibility/avoid-both-disabled-and-aria-disabled.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ HTML elements with `disabled` are ignored when a screen reader uses tab navigati
99

1010
This linter will raise when both `aria-disabled` and `disabled` are set on HTML elements that natively support `disabled` including `button`, `fieldset`, `input`, `optgroup`, `option`, `select`, and `textarea`.
1111

12-
👎 Examples of **incorrect** code for this rule:
12+
### 👎 Examples of **incorrect** code for this rule:
1313

1414
```erb
1515
<button aria-disabled="true" disabled="true">
1616
<input aria-disabled="true" disabled="true">
1717
```
1818

19-
👍 Examples of **correct** code for this rule:
19+
### 👍 Examples of **correct** code for this rule:
2020

2121
```erb
2222
<button disabled="true">

docs/rules/accessibility/iframe-has-title.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
`<iframe>` should have a unique title attribute that identifies the content. The title will help screen reader users determine whether to explore the frame in detail. If an `<iframe>` contains no meaningful content, hide it by setting `aria-hidden="true"`.
66

7-
👎 Examples of **incorrect** code for this rule:
7+
### 👎 Examples of **incorrect** code for this rule:
88

99
```erb
1010
<iframe src="../welcome-video"></iframe>
1111
```
1212

13-
👍 Examples of **correct** code for this rule:
13+
### 👍 Examples of **correct** code for this rule:
1414

1515
```erb
1616
<!-- good -->

docs/rules/accessibility/image-has-alt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
Learn more at [W3C WAI Images Tutorial](https://www.w3.org/WAI/tutorials/images/).
88

9-
👎 Examples of **incorrect** code for this rule:
9+
### 👎 Examples of **incorrect** code for this rule:
1010

1111
```erb
1212
<img src="logo.png">
1313
```
1414

15-
👍 Examples of **correct** code for this rule:
15+
### 👍 Examples of **correct** code for this rule:
1616

1717
```erb
1818
<!-- good -->

docs/rules/accessibility/no-aria-label-misuse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Also check out the following resources:
1212
- [w3c/aria Consider prohibiting author naming certain roles #833](https://github.com/w3c/aria/issues/833)
1313
- [Not so short note on aria-label usage - Big Table Edition](https://html5accessibility.com/stuff/2020/11/07/not-so-short-note-on-aria-label-usage-big-table-edition/)
1414

15-
👎 Examples of **incorrect** code for this rule:
15+
### 👎 Examples of **incorrect** code for this rule:
1616

1717
```erb
1818
<span aria-label="This does something">Hello</span>
@@ -26,7 +26,7 @@ Also check out the following resources:
2626
<h1 aria-label="This will override the content">Page title</h1>
2727
```
2828

29-
👍 Examples of **correct** code for this rule:
29+
### 👍 Examples of **correct** code for this rule:
3030

3131
```erb
3232
<span>Hello</span>

docs/rules/accessibility/no-redundant-image-alt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
Learn more at [W3C WAI Images Tutorial](https://www.w3.org/WAI/tutorials/images/).
88

9-
👎 Examples of **incorrect** code for this rule:
9+
### 👎 Examples of **incorrect** code for this rule:
1010

1111
```erb
1212
<img alt="picture of Mona Lisa" src="monalisa.png">
1313
```
1414

15-
👍 Examples of **correct** code for this rule:
15+
### 👍 Examples of **correct** code for this rule:
1616

1717
```erb
1818
<!-- good -->

0 commit comments

Comments
 (0)