Skip to content

Commit b61f408

Browse files
committed
docs: migrate a11y-semantics.md CodePens to the Vue account
vuejs/docs@a8385ea#diff-4afbccbc62cfa9b1d4d1c0723f2ef22f44e491f7dd61232374103e8f7e822347
1 parent 6f78716 commit b61f408

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/guide/a11y-semantics.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</form>
2222
```
2323

24-
<common-codepen-snippet title="Simple Form" slug="YzwpPYZ" :height="368" tab="js,result" :team="false" user="mlama007" name="Maria" theme="light" :preview="false" :editable="false" />
24+
<common-codepen-snippet title="Simple Form" slug="dyNzzWZ" :height="368" tab="js,result" theme="light" :preview="false" :editable="false" />
2525

2626
どのように `autocomplete='on'` をフォーム要素上に含むことができるかに注目してください。そしてそれはフォーム内の全ての入力欄に適用されます。また各入力欄の [autocomplete 属性に対して異なる値](https://developer.mozilla.org/ja/docs/Web/HTML/Attributes/autocomplete)をセットすることもできます。
2727

@@ -34,7 +34,7 @@
3434
<input type="text" name="name" id="name" v-model="name" />
3535
```
3636

37-
<common-codepen-snippet title="Form Label" slug="wvMrGqz" :height="265" tab="js,result" :team="false" user="mlama007" name="Maria" theme="light" :preview="false" :editable="false" />
37+
<common-codepen-snippet title="Form Label" slug="XWpaaaj" :height="265" tab="js,result" theme="light" :preview="false" :editable="false" />
3838

3939
chrome デベロッパツールでこの要素を検証し、Elements タブ内の Accessibility タブを開くと、どのように入力欄がその名前をラベルから取得するかを確認できます:
4040

@@ -68,7 +68,7 @@ chrome デベロッパツールでこの要素を検証し、Elements タブ内
6868
/>
6969
```
7070

71-
<common-codepen-snippet title="Form ARIA label" slug="jOWGqgz" :height="265" tab="js,result" :team="false" user="mlama007" name="Maria" theme="light" :preview="false" :editable="false" />
71+
<common-codepen-snippet title="Form ARIA label" slug="NWdvvYQ" :height="265" tab="js,result" theme="light" :preview="false" :editable="false" />
7272

7373
この要素を Chrome DevTools で自由に検証し、どのようにアクセス可能な名前が変更されたか確認してください:
7474

@@ -100,7 +100,7 @@ chrome デベロッパツールでこの要素を検証し、Elements タブ内
100100
</form>
101101
```
102102

103-
<common-codepen-snippet title="Form ARIA labelledby" slug="ZEQXOLP" :height="265" tab="js,result" :team="false" user="mlama007" name="Maria" theme="light" :preview="false" :editable="false" />
103+
<common-codepen-snippet title="Form ARIA labelledby" slug="MWJvvBe" :height="265" tab="js,result" theme="light" :preview="false" :editable="false" />
104104

105105
![aria-labelledby からアクセス可能な入力欄の名前を表示する Chrome デベロッパツール](/images/AccessibleARIAlabelledbyDevTools.png)
106106

@@ -132,7 +132,7 @@ chrome デベロッパツールでこの要素を検証し、Elements タブ内
132132
</form>
133133
```
134134

135-
<common-codepen-snippet title="Form ARIA describedby" slug="JjGrKyY" :height="265" tab="js,result" :team="false" user="mlama007" name="Maria" theme="light" :preview="false" :editable="false" />
135+
<common-codepen-snippet title="Form ARIA describedby" slug="gOgxxQE" :height="265" tab="js,result" theme="light" :preview="false" :editable="false" />
136136

137137
Chrome DevTools で検出することで Description を確認することができます:
138138

@@ -144,7 +144,7 @@ Chrome DevTools で検出することで Description を確認することがで
144144

145145
プレースホルダによる問題の1つは初期状態で [color contrast criteria](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html) を満たしていないことです。色のコントラストを修正するとプレースホルダが入力欄に事前入力されたデータのように見えます。以下の例を見ると、color contrast criteria を満たしている Last Name プレースホルダが事前入力されたデータのように見えることが確認できます:
146146

147-
<common-codepen-snippet title="Form Placeholder" slug="PoZJzeQ" :height="265" tab="js,result" :team="false" user="mlama007" name="Maria" theme="light" :preview="false" :editable="false" />
147+
<common-codepen-snippet title="Form Placeholder" slug="ExZvvMw" :height="265" tab="js,result" theme="light" :preview="false" :editable="false" />
148148

149149
ユーザがフォームを入力するために必要とするすべての情報を入力欄の外側で提供するのが最善です。
150150

@@ -178,7 +178,7 @@ Chrome DevTools で検出することで Description を確認することがで
178178
</fieldset>
179179
```
180180

181-
<common-codepen-snippet title="Form Instructions" slug="GRoMqYy" :height="265" tab="js,result" :team="false" user="mlama007" name="Maria" theme="light" :preview="false" :editable="false" />
181+
<common-codepen-snippet title="Form Instructions" slug="WNREEqv" :height="265" tab="js,result" theme="light" :preview="false" :editable="false" />
182182

183183
### コンテンツの非表示
184184

@@ -212,7 +212,7 @@ CSS を使用して要素を視覚的に非表示にすることができます
212212
}
213213
```
214214

215-
<common-codepen-snippet title="Form Search" slug="qBbpQwB" :height="265" tab="js,result" :team="false" user="mlama007" name="Maria" theme="light" :preview="false" :editable="false" />
215+
<common-codepen-snippet title="Form Search" slug="QWdMqWy" :height="265" tab="js,result" theme="light" :preview="false" :editable="false" />
216216

217217
#### aria-hidden="true"
218218

@@ -240,7 +240,7 @@ CSS を使用して要素を視覚的に非表示にすることができます
240240
</form>
241241
```
242242

243-
<common-codepen-snippet title="Form Buttons" slug="PoZEXoj" :height="467" tab="js,result" :team="false" user="mlama007" name="Maria" theme="light" :preview="false" :editable="false" />
243+
<common-codepen-snippet title="Form Buttons" slug="JjEyrYZ" :height="467" tab="js,result" theme="light" :preview="false" :editable="false" />
244244

245245
#### 機能的な画像
246246

@@ -276,4 +276,4 @@ CSS を使用して要素を視覚的に非表示にすることができます
276276
</form>
277277
```
278278

279-
<common-codepen-snippet title="Functional Images" slug="NWxXeqY" :height="265" tab="js,result" :team="false" user="mlama007" name="Maria" theme="light" :preview="false" :editable="false" />
279+
<common-codepen-snippet title="Functional Images" slug="jOyLGqM" :height="265" tab="js,result" theme="light" :preview="false" :editable="false" />

0 commit comments

Comments
 (0)