Skip to content

Commit

Permalink
テーブルを揃える
Browse files Browse the repository at this point in the history
  • Loading branch information
宮岡聖也 authored and 宮岡聖也 committed May 17, 2021
1 parent ed94654 commit 44461ac
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
21 changes: 11 additions & 10 deletions src/guide/a11y-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,17 @@ export default {

ランドマークを使用すると、アプリケーション内のセクションへプログラムによるアクセスができます。支援技術に依存しているユーザは、アプリケーションの各セクションに移動し、コンテンツをスキップすることができます。これを実現するために、[ARIA ロール](https://developer.mozilla.org/ja/docs/Web/Accessibility/ARIA/Roles)を使用することができます。

| HTML | ARIA ロール | ランドマークの目的 |
| --------------- | ----------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| header | role="banner" | 主な見出し:ページのタイトル |
| nav | role="navigation" | 文書や関連文書をナビゲートする際に使用するのに適したリンク集 |
| main | role="main" | 文書の主な内容または中心的な内容。 |
| footer | role="contentinfo" | 親文書に関する情報:脚注/著作権/プライバシーポリシーへのリンク |
| aside | role="complementary" | メインコンテンツをサポートしながらも、それ自身コンテンツとして分離され、意味のあるものになっています |
| _利用不可_ | role="search" | セクションに含まれるアプリケーションの検索機能 |
| form | role="form" | フォーム関連の要素コレクション |
| section | role="region" | 関連性があり、ユーザがナビゲートする可能性が高いコンテンツ。この要素にはラベルを指定する必要があります |
| HTML | ARIA ロール | ランドマークの目的 |
| --------------- | -------------------- | ------------------------------------------------------------------------------------- |
| header | role="banner" | 主な見出し:ページのタイトル |
| nav | role="navigation" | 文書や関連文書をナビゲートする際に使用するのに適したリンク集 |
| main | role="main" | 文書の主な内容または中心的な内容。 |
| footer | role="contentinfo" | 親文書に関する情報:脚注/著作権/プライバシーポリシーへのリンク |
| aside | role="complementary" | メインコンテンツをサポートしながらも、それ自身コンテンツとして分離され、意味のあるものになっています |
| _利用不可_ | role="search" | セクションに含まれるアプリケーションの検索機能 |
| form | role="form" | フォーム関連の要素コレクション |
| section | role="region" | 関連性があり、ユーザがナビゲートする可能性が高いコンテンツ。この要素にはラベルを指定する必要があります |


:::tip Tip:
レガシーな [HTML5 のセマンティック要素をサポートしていないブラウザ](https://caniuse.com/#feat=html5semantic)との互換性を最大限に高めるために、冗長なランドマークロール属性を持つランドマーク HTML 要素を使用することをお勧めします。
Expand Down
22 changes: 11 additions & 11 deletions src/guide/composition-api-lifecycle-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
[setup()](composition-api-setup.html) 内で、ライフサイクルフックを呼び出す方法は、次の表の通りです:


| オプション API | `setup` 内のフック |
| ----------------- | -------------------------- |
| オプション API | `setup` 内のフック |
| ----------------- | ------------------- |
| `beforeCreate` | 不要\* |
| `created` | 不要\* |
| `beforeMount` | `onBeforeMount` |
| `mounted` | `onMounted` |
| `beforeUpdate` | `onBeforeUpdate` |
| `updated` | `onUpdated` |
| `beforeUnmount` | `onBeforeUnmount` |
| `unmounted` | `onUnmounted` |
| `errorCaptured` | `onErrorCaptured` |
| `renderTracked` | `onRenderTracked` |
| `renderTriggered` | `onRenderTriggered` |
| `beforeMount` | `onBeforeMount` |
| `mounted` | `onMounted` |
| `beforeUpdate` | `onBeforeUpdate` |
| `updated` | `onUpdated` |
| `beforeUnmount` | `onBeforeUnmount` |
| `unmounted` | `onUnmounted` |
| `errorCaptured` | `onErrorCaptured` |
| `renderTracked` | `onRenderTracked` |
| `renderTriggered` | `onRenderTriggered` |

:::tip
`setup``beforeCreate``created` のライフサイクルで実行されるため、これらのフックを明示的に定義する必要はありません。言い換えれば、これらのフック内のコードは、 `setup` 内に直接書くべきです。
Expand Down
2 changes: 1 addition & 1 deletion src/guide/migration/global-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const app = createApp({})
| Vue.directive | app.directive |
| Vue.mixin | app.mixin |
| Vue.use | app.use ([以下を参照](#a-note-for-plugin-authors)) |
| Vue.prototype | app.config.globalProperties ([以下を参照](#vue-prototype-replaced-by-config-globalproperties)) | |
| Vue.prototype | app.config.globalProperties ([以下を参照](#vue-prototype-replaced-by-config-globalproperties)) |

グローバルに振る舞いを変更しないその他のグローバル API は [グローバル API の Treeshaking](./global-api-treeshaking.html) にあるように、名前付きエクスポートになりました。

Expand Down

0 comments on commit 44461ac

Please sign in to comment.