Skip to content

Commit c5aaf45

Browse files
dogledogleveaba
authored andcommitted
docs: fix typos and punctuation.
1 parent 60af863 commit c5aaf45

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/guide/best-practices/accessibility.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ watch(
137137

138138
当创建一个表单,你可能使用到以下几个元素:`<form>``<label>``<input>``<textarea>``<button>`
139139

140-
标签通常放置在表格字段的顶部或左侧
140+
标签通常放置在表单字段的顶部或左侧
141141

142142
```vue-html
143143
<form action="/dataCollectionLocation" method="post" autocomplete="on">
@@ -169,7 +169,7 @@ watch(
169169

170170
![Chrome 开发者工具正在通过标签展示无障碍访问的 input 框的名字](./images/AccessibleLabelChromeDevTools.png)
171171

172-
:::warning 警告
172+
:::warning 警告
173173
你可能还见过这样的包装 input 框的标签:
174174

175175
```vue-html
@@ -179,7 +179,7 @@ watch(
179179
</label>
180180
```
181181

182-
但我们仍建议你显式地为 input 元素设置 id 相匹配的标签,以更好地实现无障碍访问。
182+
但我们仍建议你显式地为 input 元素设置与 id 相匹配的标签,以更好地实现无障碍访问。
183183
:::
184184

185185
#### `aria-label` {#aria-label}
@@ -383,7 +383,7 @@ const nameId = useId()
383383
</form>
384384
```
385385

386-
现在,只要视力情况良好,用户可以就能通过按钮的内容识别出该 input 框的目的。
386+
现在,只要视力情况良好,用户就能通过按钮的内容识别出该 input 框的目的。
387387

388388
此时我们可以使用 CSS 从视觉上隐藏元素,同时也不会影响到无障碍访问:
389389

0 commit comments

Comments
 (0)