You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guide/a11y-basics.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -94,16 +94,16 @@ Users can navigate an application through headings. Having descriptive headings
94
94
95
95
Landmarks provide programmatic access to sections within an application. Users who rely on assistive technology can navigate to each section of the application and skip over content. You can use [ARIA roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles) to help you achieve this.
| header | role="banner" | Prime heading: title of the page|
100
+
| nav | role="navigation" | Collection of links suitable for use when navigating the document or related documents|
101
+
| main | role="main" | The main or central content of the document.|
102
+
| footer | role="contentinfo" | Information about the parent document: footnotes/copyrights/links to privacy statement|
103
+
| aside | role="complementary" | Supports the main content, yet is separated and meaningful on its own content|
104
+
|_Not available_| role="search" | This section contains the search functionality for the application|
105
+
| form | role="form" | Collection of form-associated elements|
106
+
| section | role="region" | Content that is relevant and that users will likely want to navigate to. Label must be provided for this element |
107
107
108
108
:::tip Tip:
109
109
It is recommended to use landmark HTML elements with redundant landmark role attributes in order to maximize compatibility with legacy [browsers that don’t support HTML5 semantic elements](https://caniuse.com/#feat=html5semantic).
Copy file name to clipboardExpand all lines: src/guide/composition-api-lifecycle-hooks.md
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -9,18 +9,18 @@ You can access a component's lifecycle hook by prefixing the lifecycle hook with
9
9
The following table contains how the lifecycle hooks are invoked inside of [setup()](composition-api-setup.html):
10
10
11
11
| Options API | Hook inside `setup`|
12
-
| ----------------- | --------------------------|
13
-
|`beforeCreate`| Not needed\*|
14
-
|`created`| Not needed\*|
15
-
|`beforeMount`|`onBeforeMount`|
16
-
|`mounted`|`onMounted`|
17
-
|`beforeUpdate`|`onBeforeUpdate`|
18
-
|`updated`|`onUpdated`|
19
-
|`beforeUnmount`|`onBeforeUnmount`|
20
-
|`unmounted`|`onUnmounted`|
21
-
|`errorCaptured`|`onErrorCaptured`|
22
-
|`renderTracked`|`onRenderTracked`|
23
-
|`renderTriggered`|`onRenderTriggered`|
12
+
| ----------------- | ------------------- |
13
+
|`beforeCreate`| Not needed\*|
14
+
|`created`| Not needed\*|
15
+
|`beforeMount`|`onBeforeMount`|
16
+
|`mounted`|`onMounted`|
17
+
|`beforeUpdate`|`onBeforeUpdate`|
18
+
|`updated`|`onUpdated`|
19
+
|`beforeUnmount`|`onBeforeUnmount`|
20
+
|`unmounted`|`onUnmounted`|
21
+
|`errorCaptured`|`onErrorCaptured`|
22
+
|`renderTracked`|`onRenderTracked`|
23
+
|`renderTriggered`|`onRenderTriggered`|
24
24
25
25
:::tip
26
26
Because `setup` is run around the `beforeCreate` and `created` lifecycle hooks, you do not need to explicitly define them. In other words, any code that would be written inside those hooks should be written directly in the `setup` function.
All other global APIs that do not globally mutate behavior are now named exports, as documented in [Global API Treeshaking](./global-api-treeshaking.html).
0 commit comments