Skip to content

Guide > Accessibility > Basics の翻訳を追従 #294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/guide/a11y-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

すべてのページで最初にフォーカス可能な要素になるため、通常これは `App.vue` の上部で使われます:

``` html
```html
<ul class="skip-links">
<li>
<a href="#main" ref="skipLink">Skip to main content</a>
Expand All @@ -22,7 +22,7 @@

フォーカスされていない時にリンクを非表示にするには、以下のスタイルを追加します:

``` css
```css
.skipLink {
white-space: nowrap;
margin: 1em auto;
Expand All @@ -42,7 +42,7 @@

ユーザがルートを変更したら、スキップリンクにフォーカスを戻します。これは以下のように `ref` にフォーカスを呼ぶことで実現できます:

``` vue
```vue
<script>
export default {
watch: {
Expand All @@ -54,7 +54,7 @@ export default {
</script>
```

<common-codepen-snippet title="Skip to Main" slug="VwepxJa" :height="350" tab="js,result" :team="false" user="mlama007" name="Maria" theme="light" :preview="false" :editable="false" />
<common-codepen-snippet title="Skip to Main" slug="GRrvQJa" :height="350" tab="js,result" theme="light" :preview="false" :editable="false" />

[メインコンテンツへのスキップリンクについてのドキュメントを読む](https://www.w3.org/WAI/WCAG21/Techniques/general/G1.html)

Expand Down