Skip to content

Commit 7f91361

Browse files
committed
Merge branch 'main' of github.com:ionic-team/ionic-docs
# Conflicts: # docs/api/accordion.md # docs/api/app.md # docs/api/datetime.md # docs/api/item.md # docs/api/nav.md # docs/api/popover.md # docs/api/segment.md # docs/api/select.md # docs/api/tab.md # docs/api/tabs.md # docs/updating/8-0.md
2 parents d663d73 + 87ae7a9 commit 7f91361

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+3612
-2029
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,4 @@ The Ionic documentation's `main` branch is deployed automatically and separately
178178

179179
This repo is licensed and managed separately from Ionic itself.
180180

181-
By contributing to this repo, you agree to have your contributions licensed under the Apache 2.0 license. See [LICENSE](../LICENSE) for the full license text.
181+
By contributing to this repo, you agree to have your contributions licensed under the Apache 2.0 license. See [LICENSE](LICENSE) for the full license text.

docs/api/accordion.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,19 +170,19 @@ import AccessibilityAnimations from '@site/static/usage/v8/accordion/accessibili
170170

171171
<AccessibilityAnimations />
172172

173-
### キーボードナビゲーション
173+
### キーボードインタラクション
174174

175175
`ion-accordion-group` の中で使用する場合、`ion-accordion` はキーボードによる操作を完全にサポートしています。次の表は、それぞれのキーが何をするのかの詳細です。
176176

177-
| Key | Function |
178-
| ------------------ | ------------------------------------------------------------ |
179-
| `Space` or `Enter` | When focus is on the accordion header, the accordion will collapse or expand depending on the state of the component. |
180-
| `Tab` | Moves focus to the next focusable element. |
181-
| `Shift` + `Tab` | Moves focus to the previous focusable element. |
182-
| `Down Arrow` | - When focus is on an accordion header, moves focus to the next accordion header. <br />- When focus is on the last accordion header, moves focus to the first accordion header. |
183-
| `Up Arrow` | - When focus is on an accordion header, moves focus to the previous accordion header. <br />- When focus is on the first accordion header, moves focus to the last accordion header. |
184-
| `Home` | When focus is on an accordion header, moves focus to the first accordion header. |
185-
| `End` | When focus is on an accordion header, moves focus to the last accordion header. |
177+
| Key | Description |
178+
| ------------------------------------ | ------------------------------------------------------------ |
179+
| <kbd>Space</kbd> or <kbd>Enter</kbd> | When focus is on the accordion header, the accordion will collapse or expand depending on the state of the component. |
180+
| <kbd>Tab</kbd> | Moves focus to the next focusable element. |
181+
| <kbd>Shift</kbd> + <kbd>Tab</kbd> | Moves focus to the previous focusable element. |
182+
| <kbd>Down Arrow</kbd> | - When focus is on an accordion header, moves focus to the next accordion header. <br />- When focus is on the last accordion header, moves focus to the first accordion header. |
183+
| <kbd>Up Arrow</kbd> | - When focus is on an accordion header, moves focus to the previous accordion header. <br />- When focus is on the first accordion header, moves focus to the last accordion header. |
184+
| <kbd>Home</kbd> | When focus is on an accordion header, moves focus to the first accordion header. |
185+
| <kbd>End</kbd> | When focus is on an accordion header, moves focus to the last accordion header. |
186186

187187
## パフォーマンス
188188

docs/api/app.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ import Slots from '@ionic-internal/component-api/v8/app/slots.md';
1515

1616
import EncapsulationPill from '@components/page/api/EncapsulationPill';
1717

18-
19-
AppはIonicアプリケーションのコンテナ要素です。プロジェクトごとに `<ion-app>` 要素は1つだけにしてください。アプリケーションには、menus, headers, content, footersなど、多くのIonicコンポーネントを含めることができます。オーバーレイコンポーネントは、表示されるときに `<ion-app>` に追加されます。
18+
AppはIonicアプリケーションのコンテナ要素です。1つのプロジェクトにつき`<ion-app>`要素は1つだけです。アプリはメニュー、ヘッダー、コンテンツ、フッターなど多くのIonicコンポーネントを持つことができます。オーバーレイコンポーネントは表示時に `<ion-app>` に追加されます。
2019

2120
`ion-app`を使用すると、以下の動作が可能になります。
2221

@@ -27,6 +26,13 @@ AppはIonicアプリケーションのコンテナ要素です。プロジェク
2726
* Material Design モードでのボタン操作時の[Ripple effect](./リップルエフェクト) が使えます。
2827
* Ionicアプリの使用感をよりネイティブなものにする、その他のタップやフォーカスのユーティリティが使えます。
2928

29+
## Programmatic Focus
30+
31+
Ionic offers focus utilities for components with the `ion-focusable` class. These utilities automatically manage focus for components when certain keyboard keys, like <kbd>Tab</kbd>, are pressed. Components can also be programmatically focused in response to user actions using the `setFocus` method from `ion-app`.
32+
33+
import SetFocus from '@site/static/usage/v8/app/set-focus/index.md';
34+
35+
<SetFocus />
3036

3137
## プロパティ
3238
<Props />

docs/api/datetime.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ Ionic Frameworkでは、[Intl.DatetimeFormat](https://developer.mozilla.org/en-U
204204

205205
### 月と年の選択
206206

207-
月と年の選択は、 `presentation` プロパティに `month-year` , `year-month` , `month` , または `year` を渡すことで行うことができます。
207+
月と年の選択は、 `presentation` プロパティに `month-year` , `month` , または `year` を渡すことで行うことができます。
208208

209209
この例では、 `month-year` を設定した datetime を示しています。
210210

@@ -416,30 +416,30 @@ JavaScriptで日付を扱うために [date-fns](https://date-fns.org) を使う
416416

417417
## アクセシビリティ
418418

419-
### キーボードナビゲーション
419+
### キーボードインタラクション
420420

421421
`ion-datetime` は、コンポーネント内のフォーカス可能な要素間を移動するためのフルキーボードサポートを備えています。次の表は、それぞれのキーが何をするのかの詳細です。
422422

423-
| Key | Function |
424-
| ------------------ | ------------------------------------------------------------ |
425-
| `Tab` | Moves focus to the next focusable element. |
426-
| `Shift` + `Tab` | Moves focus to the previous focusable element. |
427-
| `Space` or `Enter` | Clicks the focusable element. |
423+
| Key | Description |
424+
| ------------------------------------ | ---------------------------------------------- |
425+
| <kbd>Tab</kbd> | Moves focus to the next focusable element. |
426+
| <kbd>Shift</kbd> + <kbd>Tab</kbd> | Moves focus to the previous focusable element. |
427+
| <kbd>Space</kbd> or <kbd>Enter</kbd> | Clicks the focusable element. |
428428

429429
#### 日付の表示
430430

431-
| Key | Function |
432-
| ------------------ | ------------------------------------------------------------ |
433-
| `ArrowUp` | Moves focus to the same day of the previous week. |
434-
| `ArrowDown` | Moves focus to the same day of the next week. |
435-
| `ArrowRight` | Moves focus to the next day. |
436-
| `ArrowLeft` | Moves focus to the previous day. |
437-
| `Home` | Moves focus to the first day of the current week. |
438-
| `End` | Moves focus to the last day of the current week. |
439-
| `PageUp` | Changes the grid of dates to the previous month. |
440-
| `PageDown` | Changes the grid of dates to the next month. |
441-
| `Shift` + `PageUp` | Changes the grid of dates to the previous year. |
442-
| `Shift` + `PageDown` | Changes the grid of dates to the next year. |
431+
| Key | Description |
432+
| -------------------------------------- | ------------------------------------------------- |
433+
| <kbd>ArrowUp</kbd> | Moves focus to the same day of the previous week. |
434+
| <kbd>ArrowDown</kbd> | Moves focus to the same day of the next week. |
435+
| <kbd>ArrowRight</kbd> | Moves focus to the next day. |
436+
| <kbd>ArrowLeft</kbd> | Moves focus to the previous day. |
437+
| <kbd>Home</kbd> | Moves focus to the first day of the current week. |
438+
| <kbd>End</kbd> | Moves focus to the last day of the current week. |
439+
| <kbd>PageUp</kbd> | Changes the grid of dates to the previous month. |
440+
| <kbd>PageDown</kbd> | Changes the grid of dates to the next month. |
441+
| <kbd>Shift</kbd> + <kbd>PageUp</kbd> | Changes the grid of dates to the previous year. |
442+
| <kbd>Shift</kbd> + <kbd>PageDown</kbd> | Changes the grid of dates to the next year. |
443443

444444
#### 時刻、月、年のホイール
445445

docs/api/item.md

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import Basic from '@site/static/usage/v8/item/basic/index.md';
4242

4343
アイコン・ボタンのように、アイテムとのインタラクションにビジュアルが必要な場合、そのビジュアルはサポート・ビジュアルではなく、 [アクション](#actions) となります。
4444

45-
<BestPracticeFigure
45+
<BestPracticeFigure
4646
text="Supporting visuals should be rendered in a consistent manner. This makes the information in each item easier to parse."
4747
doText="Align visuals on the same side in a list"
4848
doNotText="Don't render visuals with different alignments in the same list"
@@ -60,7 +60,7 @@ import SupportingVisuals from '@site/static/usage/v8/item/content-types/supporti
6060

6161
テキスト・コンテンツ・タイプには、フォーム制御ラベルやその他の可視テキストが含まれます。このテキストは項目の意図を示す役割を果たします。テキストは短く、要点をまとめるようにしてください。
6262

63-
<BestPracticeFigure
63+
<BestPracticeFigure
6464
text={<>If you find that you need a few more sentences to clarify the item's purpose, consider moving the additional sentences to a <a href={useBaseUrl('api/note')}>Note</a> at the bottom of the list. Adding the item to its own list makes it clear which item the text is associated with.</>}
6565
doText="Move long text outside of the list"
6666
doNotText="Don't try to fit long text in an item"
@@ -82,15 +82,15 @@ import Text from '@site/static/usage/v8/item/content-types/text/index.md';
8282

8383
メタデータは、ステータステキストやカウントのようなアイテムの追加コンテキストを提供します。Badge](./badge)[Note](./note)のようなコンポーネントは、メタデータを表示する素晴らしい方法です。
8484

85-
<BestPracticeFigure
85+
<BestPracticeFigure
8686
text="Limit the amount of metadata you include to only the most relevant information."
8787
doText="Add only the most important metadata"
8888
doNotText="Don't add too much metadata as it can overwhelm or confuse the user."
8989
doImage={<img alt="A list that contains several items, each representing a different to-do list. A count of how many tasks in each to-do list is placed at the end of each item." src={useBaseUrl('img/item/metadata-relevant-do.jpg')} />}
9090
doNotImage={<img alt="A list that contains several items, each representing a different to-do list. Two counts are placed at the end of each item: One count that states the total number of tasks, and another count that states the total number of tasks that are due today." src={useBaseUrl('img/item/metadata-relevant-do-not.jpg')} />}
9191
/>
9292

93-
<BestPracticeFigure
93+
<BestPracticeFigure
9494
text="Developers should also consider how important the metadata is. Drawing attention to the metadata may be helpful for the user or it may distract them from the more important information depending on the use case."
9595
doText="Prioritize the most important content."
9696
cautionText="Prioritized metadata may distract from other important content."
@@ -112,7 +112,7 @@ import Metadata from '@site/static/usage/v8/item/content-types/metadata/index.md
112112

113113
開発者は、<a href="https://dequeuniversity.com/rules/axe/4.4/nested-interactive">入れ子になったインタラクティブ機能</a>を作成することは避けるべきです。例えば、 `button` プロパティが `true` に設定されている場合、開発者はアイテムのメインコンテンツ内にボタンを追加することを避けるべきです。
114114

115-
<BestPracticeFigure
115+
<BestPracticeFigure
116116
text={<>Actions can be added by using the <a href={useBaseUrl('api/item-sliding')}>Item Sliding</a> component. Actions can also be placed directly inside of the Item without the use of Item Sliding, but this should be limited to no more than 2 actions.</>}
117117
doText={<>Use an <a href={useBaseUrl('api/item-sliding')}>Item Sliding</a> to reveal multiple actions by swiping on the Item.</>}
118118
doNotText="Don't put more than 2 actions within an Item."
@@ -130,23 +130,23 @@ import Actions from '@site/static/usage/v8/item/content-types/actions/index.md';
130130

131131
コントロールは、チェックボックス、入力、ラジオなどのフォームコンポーネントです。リスト内の各項目は、画面スペースの制約上、最大でも2つのコントロールを持つ必要があります。
132132

133-
<BestPracticeFigure
133+
<BestPracticeFigure
134134
text={<>Metadata such as helper text or character counts should not be used on form controls in list views. If such metadata is needed, the form control should be placed outside of a list. <a href={useBaseUrl('api/input#filled-inputs')}>Filled Inputs</a> are a great way of visually defining the input container outside of a list.</>}
135135
doText="Place inputs with metadata outside of the list."
136136
doNotText="Don't put metadata for inputs in the list."
137137
doImage={<img alt="There is an email input and a password input. Both have helper text associated with them. Since both are placed outside of a list it is clear which input each helper text is associated with." src={useBaseUrl('img/item/controls-metadata-list-do.jpg')} />}
138138
doNotImage={<img alt="There is a list containing an email input and a password input. Both have helper texts associated with them. However, the divider between each item and between the helper text makes it hard to tell which input each helper text is associated with." src={useBaseUrl('img/item/controls-metadata-list-do-not.jpg')} />}
139139
/>
140140

141-
<BestPracticeFigure
141+
<BestPracticeFigure
142142
text={<>Alternatively, the metadata can be placed in a <a href={useBaseUrl('api/note')}>Note</a> at the bottom of the list.</>}
143143
doText="Place metadata for inputs at the end of a list."
144144
doNotText="Don't put metadata for inputs in the list."
145145
doImage={<img alt="There are two lists of inputs. The first list contains a password input. Below that list contains text that says 'Password must be at least 16 characters'. The second list contains an email input. This second list is separated so the password length requirement text is clearly associated with the password input above." src={useBaseUrl('img/item/controls-metadata-do.jpg')} />}
146146
doNotImage={<img alt="There is one list of inputs. One of the inputs is a password input with text below the input that says 'Password must be at least 16 characters'. However, this text is placed directly above another input, so it's not immediately clear which input the text is associated with." src={useBaseUrl('img/item/controls-metadata-do-not.jpg')} />}
147147
/>
148148

149-
<BestPracticeFigure
149+
<BestPracticeFigure
150150
text={<>Items should typically have no more than two controls. If you need more controls, consider adding the additional controls in a <a href="useBaseUrl('api/modal')">Modal</a> that is accessible from the item.</>}
151151
doText="Move additional controls to a submenu accessible from the item."
152152
doNotText="Don't use more than two controls within an item."
@@ -245,7 +245,38 @@ import CSSProps from '@site/static/usage/v8/item/theming/css-properties/index.md
245245
3. アイテムは決して[入れ子になったインタラクティヴ](https://dequeuniversity.com/rules/axe/4.4/nested-interactive)をレンダリングすべきではありません。入れ子になったインタラクティブ要素が使用されている場合、スクリーンリーダーは正しいインタラクティブ要素を選択することができません。例えば、`button="true"`を持つ`ion-item`の中にボタンを置くことは避けてください。
246246
4. コンテントタイプ](#content-types)を正しく使用してください。Itemコンポーネントは、[List](./list)内の行として設計されており、汎用コンテナとして使用すべきではありません。
247247

248-
## プロパティ
248+
## アクセシビリティ
249+
250+
### キーボードインタラクション
251+
252+
An `<ion-item>` has the following keyboard interactions when any of these conditions are met:
253+
- The `button` property is set to `"true"`, rendering a native `<button>` element.
254+
- The `href` property is set, rendering a native `<a>` element.
255+
- The `routerLink` property is set, rendering a native `<a>` element.
256+
257+
| Key | Description |
258+
| --------------------------------- | ---------------------------------------------- |
259+
| <kbd>Tab</kbd> | Moves focus to the next focusable element. |
260+
| <kbd>Shift</kbd> + <kbd>Tab</kbd> | Moves focus to the previous focusable element. |
261+
262+
#### Button
263+
264+
When an `<ion-item>` renders a native `<button>` element, the keyboard interactions follow the same pattern as the [button role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role#keyboard_interactions):
265+
266+
| Key | Description |
267+
| ---------------- | --------------------------------------------------------------------------- |
268+
| <kbd>Enter</kbd> | Activates the item, triggering its `click` event. If the item is within a form and has `type` set to `"submit"`, it submits the form. |
269+
| <kbd>Space</kbd> | Activates the item, triggering its `click` event. Does not submit the form, even if the item `type` is `"submit"`. |
270+
271+
#### Anchor
272+
273+
When an `<ion-item>` renders a native `<a>` element, the keyboard interactions follow the same pattern as the [link role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/link_role):
274+
275+
| Key | Description |
276+
| ---------------- | ---------------------------------------------------------------------------------------- |
277+
| <kbd>Enter</kbd> | Activates the item, navigating to the linked page or moving focus to the in-page target. |
278+
279+
## Properties
249280
<Props />
250281

251282
## イベント

0 commit comments

Comments
 (0)